Comments (6)
Solved by downgrading torch from 1.4.0 to 1.3.1, torchvision from 0.5.0 to 0.4.2, pillow from 7.0.0 to 6.2.1.
from unet-segmentation-pytorch-nest-of-unets.
I think this was caused by torch1.4.0 and its compatibility with PIL image.
from unet-segmentation-pytorch-nest-of-unets.
Yes, I think so too. Thanks for the reply!
Just another question, if I would like to train my model with multiclass dataset, which lines do I have to change? I tried changing all the sigmoid in pytorch_run.py to softmax but it didnt work since the dice score is still low. Thanks.
from unet-segmentation-pytorch-nest-of-unets.
Did you change the input and output for the model?
And by changing the to softmax it should work.
What's the dice score?
from unet-segmentation-pytorch-nest-of-unets.
The dice score is 0.23958333333333334.
For the input shape, I tried changing the line: model_test = model_unet(model_Inputs[0], 3, 1) to model_test = model_unet(model_Inputs[0], 3, 8) since my there are 8 classes in my dataset labels but I get this error: ValueError: Target size (torch.Size([4, 1, 96, 96])) must be the same as input size (torch.Size([4, 8, 96, 96])). Where can I change the shape of the model output? I can't seem to find the line to change output shape in pytorch_run.py. Thank you for helping!
from unet-segmentation-pytorch-nest-of-unets.
Dice score = 0.24 is not good at all.
Yes by changing it to (model_input[0],3,8 ) it should be working for 8 classes.
Also, you have to change it to softmax to make it work for all prediction line.
pred_tb = F.sigmoid(pred_tb)
Can you tell me which line you are facing this issue?
from unet-segmentation-pytorch-nest-of-unets.
Related Issues (20)
- Please give dataset
- tuple index out of range HOT 2
- hello,is label a 3 channels image? HOT 4
- May have future issues in input size in basic Unet HOT 1
- Data transformation HOT 4
- loss HOT 1
- dim HOT 1
- Caught RuntimeError in DataLoader worker process 0& The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0 HOT 11
- Help for data or data format HOT 1
- Data set HOT 4
- train my data
- IndexError: tuple index out of range HOT 2
- effect
- Aboot DataBase HOT 1
- choose network HOT 5
- RuntimeError: output with shape [1, 800, 600] doesn't match the broadcast shape [3, 800, 600] HOT 5
- How to get my output? HOT 1
- Regarding Dataset HOT 1
- r2unet HOT 3
- RuntimeError: DataLoader worker (pid(s) 38348, 20180, 30224, 8512, 38232, 19588, 39276, 10048) exited unexpectedly HOT 1
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 unet-segmentation-pytorch-nest-of-unets.