Comments (8)
I have made my png from the MRI files.
There is a .py file called 2d from 3d in the repo.
Have a look at it.
from unet-segmentation-pytorch-nest-of-unets.
okay, thanks for your reply!
from unet-segmentation-pytorch-nest-of-unets.
please don't close it now, maybe I 'll have some problems lately.
lol
thank you!
from unet-segmentation-pytorch-nest-of-unets.
Sure. No problem. You can even write to me on [email protected].
from unet-segmentation-pytorch-nest-of-unets.
Hello!
I met a problem which says:
RuntimeError: output with shape [1, 96, 96] doesn't match the broadcast shape [3, 96, 96]
I referred to online tutorials, change the sentence :
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])])
into another sentence :
transform = transforms.Compose([
transforms.ToTensor(),
transforms.Lambda(lambda x: x.repeat(3,1,1)),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
])
But it is still the same error. Could you tell me why?
Thx very much!
from unet-segmentation-pytorch-nest-of-unets.
Its probably because you are providing a 1D input to the expected 3D tensor.
try :
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=[0.5], std=[0.5])])
But what is your input to the transformation?
from unet-segmentation-pytorch-nest-of-unets.
What is the shape of the input given to datasets?
Can you share those details?
and the shape of the output of the 2d_from_3d file that you are creating?
from unet-segmentation-pytorch-nest-of-unets.
Its probably because you are providing a 1D input to the expected 3D tensor.
try :
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=[0.5], std=[0.5])])But what is your input to the transformation?
i have tried this solution but didn't solve the problem.And my input data is RGB and mask is gray.
from unet-segmentation-pytorch-nest-of-unets.
Related Issues (20)
- 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
- Data Set 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 unet-segmentation-pytorch-nest-of-unets.