Comments (8)
That code is for getting the 2d slices from 3D mri scans.
Just have to add the folder in the first lines and it will give you the slices.
from unet-segmentation-pytorch-nest-of-unets.
That code is for getting the 2d slices from 3D mri scans.
Just have to add the folder in the first lines and it will give you the slices.
But if my dataset is 2d with input_channels 3, and the label is the gray, what should i do? thank you
from unet-segmentation-pytorch-nest-of-unets.
You dont want to use the 2D_from_3d in your code if you want to run the unet.
You just have to add the folder path to these lines in pytorch)run :
t_data = '' # Input data
l_data = '' #Input Label
test_image = '' #Image to be predicted while training
test_label = '' #Label of the prediction Image
test_folderP = '' #Test folder Image
test_folderL = '' #Test folder Label for calculating the Dice score
from unet-segmentation-pytorch-nest-of-unets.
You dont want to use the 2D_from_3d in your code if you want to run the unet.
You just have to add the folder path to these lines in pytorch)run :t_data = '' # Input data
l_data = '' #Input Label
test_image = '' #Image to be predicted while training
test_label = '' #Label of the prediction Image
test_folderP = '' #Test folder Image
test_folderL = '' #Test folder Label for calculating the Dice score
Hi ,I want to ask you a question,
Using CenterCrop(96) in Data_Loader() in the code, but my dataset's size is(400,600), so I want to know how to change the code.
My code is CenterCrop((600,400)) or Resize((600,400)), do you think the modification is right?
from unet-segmentation-pytorch-nest-of-unets.
You dont have to change anything.
In the pytorch_run in line 120, change the transformation to (96)
from unet-segmentation-pytorch-nest-of-unets.
hello, I have one question for 2d_from_3d.py in line 21 and line 31, the code 'x = yimage[:184,:232,112:136]'. Could you please tell what does it mean to use [:184,:232,112:136] and how can i set the parameters for my own dataset with shape(155,240,240)? Thanks in advance
from unet-segmentation-pytorch-nest-of-unets.
I have taken [:184,:232,112:136] because I just wanted those slices of the 3d mri. So my 2d images extracted will just be from 112:136 , that is my area of interest.
from unet-segmentation-pytorch-nest-of-unets.
I have taken [:184,:232,112:136] because I just wanted those slices of the 3d mri. So my 2d images extracted will just be from 112:136 , that is my area of interest.
Thanks for you reply
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.