Giter Site home page Giter Site logo

Comments (4)

abmBashir13 avatar abmBashir13 commented on August 26, 2024

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
tf.app.run()
File "/home/abm/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/abm/.local/lib/python3.5/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/home/abm/.local/lib/python3.5/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "main.py", line 73, in main
network.train()
File "/home/abm/codeGAN/proposed_model/model.py", line 223, in train
data_directory=F.data_directory)
File "../preprocess/preprocess.py", line 306, in init
patch_shape,number_images_training)
File "../preprocess/preprocess.py", line 164, in preprocess_dynamic_lab
label_vols[(case_idx-c-1), :, :, :] = read_vol(case_idx, 'label', dir)
ValueError: could not broadcast input array from shape (144,192,256,1) into shape (144,192,256)

from fewshot_gan-unet3d.

arm-stronger avatar arm-stronger commented on August 26, 2024

@hassaanmahmood can you share iseg2017 to me? thanks very much [email protected]

from fewshot_gan-unet3d.

arm-stronger avatar arm-stronger commented on August 26, 2024

@abmBashir13 can you share iseg2017 to me? thanks very much [email protected]

from fewshot_gan-unet3d.

huanqingxu avatar huanqingxu commented on August 26, 2024

'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
main()
File "main.py", line 26, in main
agent = agent_class(config)
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/agents/supervised_baseline.py", line 35, in init
self.trainloader = Supervised_Dataset(self.config, "training")
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/datasets/dataloader.py", line 57, in init
self.dataset = Supervised_Dataloader(config, phase)
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/datasets/dataloader.py", line 24, in init
config.number_images_training)
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/utils/preprocess.py", line 173, in preprocess_dynamic_lab
testing=testing,num_images_training=num_images_training)
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/utils/preprocess.py", line 111, in get_patches_lab
T1_train = extract_patches(T1_vols[idx], patch_shape, extraction_step,datype="float32")
File "/media/lab549/CE56C94660FE3E83/semantic segmentation_xhq/code_xhq/FewShot_GAN-Unet3D-master/pytorch/utils/preprocess.py", line 68, 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)

from fewshot_gan-unet3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.