Comments (3)
Hi @Sayantan17 ,
I do not have the exact code for ACDC and I do not work with it this year.
However, it is easy to save the data
import nibabel as nib
img_4D_nii = nib.load('path to 4D data')
img_4D = img_4D_nii.get_fdata()
img_3D = img_4D[:,:,:,0]
nib.save(nib.Nifti1Image(img_3d, img_4D_nii.affine, img_4D_nii.header), 'path/save_name')
from seglossodyssey.
Hi @Sayantan17 ,
Unfortunately, I do not use the conversion function in nnUNet.
I usually write the conversion function by myself.
If I understand your question right, you want to convert 4D data to 3D, right?
I usually extract one channel to obtain the 3D volume.
import nibabel as nib
img_4D = nib.load('path to 4D data').get_fdata()
img_3D = img_4D[:,:,:,0]
from seglossodyssey.
Thx Jun,
That's what I tried. Can you please help me to write that for ACDC dataset, I am whole lot confused by its file & structure. We could upload that to the repo for users. I mean the 4D to 3D, and saving thr data, and GT. Let me know.
from seglossodyssey.
Related Issues (20)
- can this be used in 2D seg ? HOT 2
- What loss is worth trying for multi classification unbalanced data sets? HOT 1
- hi, how could we use boundary loss for nnunet? HOT 1
- Please add a license to this repository HOT 2
- about gradient HOT 5
- About distance map HOT 1
- Why some loss functions in README figure1 have same color? HOT 1
- How long will it take to train with DICEHD on multiorgan dataset by nnunet? HOT 2
- Polyloss HOT 1
- the time training for one epoch with boundary-loss is too long, are there some answers? HOT 2
- multi focal loss alpha HOT 1
- multi focal loss alpha HOT 1
- About Sensitivity Specificity loss function implementation HOT 1
- Hello, can you provide the ASOCA dataset? HOT 1
- why is there no resolution input in the distance_map computing(scipy.ndimage.distance_transform_edt)? HOT 1
- AttributeError: 'IoULoss' object has no attribute 'backward'
- Violin plot HOT 1
- is nnUNetTrainerV2.py available? HOT 1
- Request to include FCM loss.
- Remove additional entry of seglossbias?
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 seglossodyssey.