Comments (5)
Sorry for the late reply. Somehow I never noticed your issue until now.
Yes, your understanding is correct, the unlabeled class is ignored by setting its weight to 0. Does the same problem happen with training images? i.e. with a trained model, if you run inference on the training images do you see the same issues?
from pytorch-enet.
yep, it seems to be the same..I tried two version, one is to set unlabeled class to have weight 0, the other one is include unlabeled class during training.. but both seem to have this problem..I couldn't come up with any idea why this happened because my pole class is 2, sign class is 6, they are not either first number or the last number...
from pytorch-enet.
After looking into this a bit more, seems that you are right.
The top row of images are ground-truth labels and the bottom row are the predictions. The model is indeed making predictions for unlabeled pixels.
from pytorch-enet.
Apparently, this behaviour is expected. After looking at the author's implementation of ENet and other segmentation networks my conclusion is that there is no way to stop the network from predicting a class for the unlabeled pixels. Those pixels are simply ignored when computing metrics, but a prediction is always made.
I have pushed a few changes to the IoU metric that add an additional argument (ignore_index
) which allows for a class to be ignored when computing metrics.
If you want unlabeled pixels to be predicted as unlabeled, use the flag --with-unlabeled
. @wzhouuu make sure you are using the current version of this repository as the old flag (--ignore_unlabeled
) had no effect.
from pytorch-enet.
Thanks for the update!
from pytorch-enet.
Related Issues (20)
- dataset folder structure HOT 2
- test IoU is nan HOT 1
- How do I save the segmented images ? HOT 2
- Training with two classes HOT 3
- Transfer learning with a different number of classes as in original HOT 2
- Question about the params and FLOPs of ENet HOT 2
- Problems while using different dataset HOT 5
- the question with output HOT 1
- the question about output shape HOT 9
- save all the images HOT 2
- a question about UpsamplingBottleneck block HOT 4
- generates iou greater than 1 looks like a wrong formulation!
- the question about torch.load() HOT 3
- question about testing the model on an image HOT 1
- Skip connections HOT 1
- Unable to use pre-trained models HOT 1
- Cannot run main.py in test mode - 1only batches of spatial targets supported (3D tensors) HOT 2
- Pytorch-ENet to ONNX failed due to unsupported max_unpool2d HOT 2
- custom dataset tutorial
- 请问该如何训练自己的数据集
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 pytorch-enet.