You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
I'm currently trying to segment 2D RGB (256x256x3) images. I've converted my images to the .nii format in order to make it compatible with NiftyNet. As a test, I tried to run a training segmentation session with the Vnet application. However, I keep getting the following error no matter how I tweak the configuration file.
ValueError: Dimension 1 in both shapes must be equal, but are 2 and 1 for 'worker_0/VNet/residual_concat/concat' (op: 'ConcatV2') with input shapes: [20,2,2,256], [20,1,1,128], [] and with computed input tensors: input[2] = <-1>.
I am currently using Red Hat Linux with Tensorflow 1.3 and Python 2.7. I always cd to my NiftyNet directory before I execute the following command: python net_segment.py train -c DSBtrain.ini
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
@mariamhrr@wyli Since the merge of image-loader NiftyNet now fully supports 2D images without having to convert them to NiftyFormat. There is no need to fake 3-dimensional spatial_window_size either (although it is perfectly ok if you do).
NiftyNet currently supports loading images from OpenCV, Scikit-Image and PIL/Pillow, assuming that you have the corresponding libraries installed. You can specify a loader in the config file, or it will automatically try to find one that can handle yout images.
Pretty much every 2D image format is supported (as long as it can be loaded by one of those libraries): .jpg, .png, .bpm, .tif ...
I'm currently trying to segment 2D RGB (256x256x3) images. I've converted my images to the .nii format in order to make it compatible with NiftyNet. As a test, I tried to run a training segmentation session with the Vnet application. However, I keep getting the following error no matter how I tweak the configuration file.
ValueError: Dimension 1 in both shapes must be equal, but are 2 and 1 for 'worker_0/VNet/residual_concat/concat' (op: 'ConcatV2') with input shapes: [20,2,2,256], [20,1,1,128], [] and with computed input tensors: input[2] = <-1>.
Below is my configuration file:
I am currently using Red Hat Linux with Tensorflow 1.3 and Python 2.7. I always
cd
to my NiftyNet directory before I execute the following command:python net_segment.py train -c DSBtrain.ini
What am I doing wrong?
The text was updated successfully, but these errors were encountered: