Comments (7)
Hello, @loaysh2010 .
You should use same size of ground truth.
Please check SR_Flat and GT_Flat size.
from image_segmentation.
@LeeJunHyun ,
Thank you very much for your concern. Actually, I did check SR_Flat and GT_Flat size. the input image and GT image are the same size [1,3,256,256], but the SR image is [1,1,256,256], so I convert the GT image to grayscale [1,1,256,256] after flatting it be the same this. I hope that will overcome the problem.
Do you have any other idea?
from image_segmentation.
@loaysh2010 ,
I think your GT has 3 classes.
If I am correct, then you should change the number of output channel of network.
from image_segmentation.
@LeeJunHyun
my GT was saved as png colored image. so it has the shape of [1,3,256,256] where 3 is for RGB colors. So after converting it to grayscale it's shaped become [1,1,256,256] so when flatting it get the same size as SR flatted image.
do you think to change the number of output channel of the network better than convert the GT to grayscale with the previously mentioned shape ??
from image_segmentation.
If your GT has RGB channel, each channel must have its own meaning, right?
If so, it would be batter that you just keep GT as colored image.
from image_segmentation.
@LeeJunHyun Changed the output channel for the model to 3. and error fixed
Thanks for your time. You can close the issue
from image_segmentation.
hello author,
how can i use your code for mutliclass segmentation. i have rgb ground truth.
thank you
from image_segmentation.
Related Issues (20)
- Unstable performances in validation set and prediction collapse HOT 9
- Attention gate after upsampling HOT 5
- edge pixel weight map
- some queries HOT 1
- How long will it cost for training on DRIVE dataset?
- saving checkpoints in "model.pth" format and visualizing the segmentation results HOT 1
- JS=1,DS>1and loss>1000 HOT 1
- RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 160 and 384 in dimension 2 at /pytorch/aten/src/TH/generic/THTensor.cpp:689 HOT 8
- Grayscale image HOT 1
- about the .pkl file HOT 2
- > hey guys. use pytorch<=1.2.0 (not confirmed) or change the funtion in "evaluation" to fit the calculation of **bool tensor** will sovle the problem HOT 1
- El
- How to train the multi-class task
- Dice coefficience
- the length variable in the solver.py,
- ValueError: num_samples should be a positive integer value, but got num_samples=0 HOT 1
- License
- the test of solver.py HOT 1
- acc error HOT 1
- Environment details 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 image_segmentation.