Comments (4)
Hi, @absagargupta
You can make prediction on any images/any dataset (make sure to preprocess them same as in training stage), but model will produce label it have been trained on.
from segmentation_models.
Thank you so much for the prompt reply. In case I need just the labels of people and the background what changes should I take care of?
from segmentation_models.
Suppose you have trained you model for C
=10 classes, where value 3
is people class.
Output of network will be a tensor output
with shape (N, H, W, 10).
To get mask of people class:
mask = (np.argmax(output, axis=-1) == 3)
from segmentation_models.
Thank you. :-)
from segmentation_models.
Related Issues (20)
- How to implement more metrics in model.compile? HOT 2
- Dropout layers in U-net and Linknet
- ModuleNotFoundError: No module named 'keras.legacy_tf_layers' issue
- Kindly add the Segformer Backbone! :) HOT 1
- module 'keras.utils.generic_utils' has no attribute 'get_custom_objects' HOT 4
- Good IOU Score on training data, but bad segmentation on testing data. HOT 2
- batch size when predicting HOT 1
- Segformer/Transformer Backbone
- File "/usr/local/lib/python3.8/dist-packages/tensorflow/lite/python/interpreter.py", line 915, in invoke self._interpreter.Invoke() RuntimeError: tensorflow/lite/kernels/concatenation.cc:158 t->dims->data[d] != t0->dims->data[d] (1 != 2)Node number 304 (CONCATENATION) failed to prepare.
- Is there option to add classification head after encoder like in pytorch version?
- AttributeError: module 'keras.utils' has no attribute 'generic_utils'
- Incorporating sample weights in loss function
- Understanding difference between TensorFlow and PyTorch implementations of Unet
- Equation .. math:: is misleading
- How to apply inferred mask to image
- massive datasets loading and training
- Impact of pre-trained weights ? HOT 1
- train Unet model with gray scale
- Can I use my own custom feature extraction model to export to the backbone? HOT 3
- Model segment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentation_models.