FewShot_GAN-Unet3D
FewShot_GAN-Unet3D copied to clipboard
running python main.py --training getting error.
I am getting error . What can be the problem here.
`Training
1
../data/iSEG_preprocessed/Training/T1/subject-1-T1.nii
../data/iSEG_preprocessed/Training/T2/subject-1-T2.nii
../data/iSEG_preprocessed/Training/label/subject-1-label.nii
Extracting Patches from Image 1 ....
Total Extracted Labelled Patches Shape: (2605, 32, 32, 32, 2) (2605, 32, 32, 32)
../data/iSEG_preprocessed/Testing/T1/subject-11-T1.nii
../data/iSEG_preprocessed/Testing/T2/subject-11-T2.nii
../data/iSEG_preprocessed/Training/label/subject-1-label.nii
Processing the Image 11 ....
Traceback (most recent call last):
File "main.py", line 81, in
File "../preprocess/preprocess.py", line 246, in preprocess_dynamic_unlab x=get_patches_unlab(T1_vols, T2_vols, extraction_step, patch_shape,dir) File "../preprocess/preprocess.py", line 205, in get_patches_unlab label_patches = extract_patches(label_ref, patch_shape, extraction_step) File "../preprocess/preprocess.py", line 81, in extract_patches dstride_d:(dstride_d)+patch_d] ValueError: could not broadcast input array from shape (32,32,32,1) into shape (32,32,32)`
Almost same problem here.
Training
1
../data/iSEG_preprocessed/Training/T1/subject-1-T1.nii
../data/iSEG_preprocessed/Training/T2/subject-1-T2.nii
../data/iSEG_preprocessed/Training/label/subject-1-label.nii
Traceback (most recent call last):
File "main.py", line 80, in
@hassaanmahmood can you share iseg2017 to me? thanks very much [email protected]
@abmBashir13 can you share iseg2017 to me? thanks very much [email protected]
'relu_slope': 0.2, 'seed': 1, 'validation_every_epoch': 1, 'volume_shape': [144, 192, 256], 'weight_decay': 0, 'x_test': '', 'x_train': '', 'x_valid': '', 'y_test': '', 'y_train': '', 'y_valid': ''}
The experiment name is unet_experiment
[INFO]: Hi, This is root.
[INFO]: After the configurations are successfully processed and dirs are created.
[INFO]: The pipeline of the project will begin now.
Training
1
./data/iSEG_preprocessed/Training/T1/subject-1-T1.nii
(1, 144, 192, 256, 1)
./data/iSEG_preprocessed/Training/T2/subject-1-T2.nii
(1, 144, 192, 256, 1)
./data/iSEG_preprocessed/Training/label/subject-1-label.nii
(1, 144, 192, 256)
Extracting Patches from Image 1 ....
Traceback (most recent call last):
File "main.py", line 31, in