NiftyNet icon indicating copy to clipboard operation
NiftyNet copied to clipboard

2d U-net on 3D nii CT data

Open Yushen12sigma opened this issue 6 years ago • 2 comments

Hi, Niftynet team,

I'm trying to train a 2D unet with every single slice of a 3D CT scan.

According to your instruction, https://niftynet.readthedocs.io/en/dev/window_sizes.html "setting spatial_window_size = (h, w, 1) will generate a 2.5D windows, "

but in the instruction of configuration file https://niftynet.readthedocs.io/en/dev/config_spec.html "Array of three integers specifies the input window size. Setting it to single slice, e.g., spatial_window_size=64, 64, 1, yields a 2-D slice window."

So which is is correct? or should I chop the 3D scan into 2D images by myself?

Thank you!

Yushen12sigma avatar Nov 14 '18 17:11 Yushen12sigma

Hello, have you solved the problem?

1160914483 avatar Mar 03 '19 03:03 1160914483

The spatial_window_size should have the dimensions of data you're working with, so for 2D it would (h, w). The unet_histology demo illustrates this using the 2D unet implementation.

ericspod avatar May 30 '19 10:05 ericspod