Comments (4)
https://github.com/DrSleep/light-weight-refinenet/blob/master/utils/cmap.npy is the colourmap I am using
If you want to see the network's outputs before colouring, simply comment out segm = cmap[segm.argmax(axis=2).astype(np.uint8)]
in the notebook
from light-weight-refinenet.
I recently loaded the cmap.npy through numpy tool. I found that it was an array of form (256,3). However, should it be an array of form (40, 3) since it is the colourmap ? I am curious about what "256" means ?
from light-weight-refinenet.
256 just means that there are 256 different colours available.
the NYUD colours only use the first 40 values; VOC -- 20 and etc.
what happens is the network predicts indices from 0 to num_classes
, then each predicted index is replaced by a corresponding RGB vector from the cmap file; say, your network predicted indices [2, 3, 1]
and the colourmap is [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 0, 3]]
, then the output would be [[0, 0, 2], [0, 0, 3], [0, 0, 1]]
hope that makes it clearer
from light-weight-refinenet.
Thank you for your helping!
from light-weight-refinenet.
Related Issues (20)
- Having a hard time reproducing the results for NYU dataset HOT 4
- train mbv2 model HOT 2
- Error when importing miou_utils HOT 2
- LOSS meaniou no change HOT 3
- How does a single GPU run train?
- The following error occurs when changing a category to your own category HOT 2
- How to infer with my own trained model? HOT 3
- Cityscapes's Model
- RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED HOT 2
- InvertedResidualBlock adding extra ConvBNReLU than the vanilla implementation HOT 1
- How to calculate FPS? HOT 4
- how to get the FLOPs? HOT 2
- Add CPU-only in serialization.py
- How to use ResNet-18 as backbone? HOT 2
- Visualizing the training process
- ./src/config HOT 2
- No datasets file
- Broken pipe HOT 5
- Some questions about transposing the data and results HOT 2
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 light-weight-refinenet.