-
-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: Expected 5-dimensional input for 5-dimensional weight 8 4 3 3, but got 4-dimensional input of size [4, 256, 64, 64] instead #17
Comments
I have the same problem, did you solve it? |
I have the same problem. I guess that the brats2018 dataset could not share the code of the dataloader with other dataset... Do we need to rewrite the Dataset class? |
Hello everyone and sorry for the late response.. We are currently working on a big restructuring of the project. We are rewriting the dataset class as well so hopefully, this problem will be solved. So please have a little patience as we do that in our free time. I will look into this issue tomorrow ( or within the weekend) and let you know. |
Hi. How's it going about this bug? |
You can change line 117 of file brats2019.py as follows: |
I have faced the same problem, some one solved it? |
I was working with BRATS2018 and got this error, fixed it by changing remove now from
similar to @YouTaoBaBa solution for brats2019 |
Yup with a quick look this should do the trick. By the way, feel free to open a pr so we can fix this and similar issues. As you might have guessed, we don't have much time to actively develop this project so we are looking for contributors to build upon our initial code. @YouTaoBaBa @GokulDas027 |
Can you tell me why cone to it and how to solve it?
Traceback (most recent call last):
File "train_brats2018_new.py", line 75, in
main()
File "train_brats2018_new.py", line 33, in main
trainer.training()
File "/data/Disk_A/guoyang/mqp/MedicalZooPytorch-master/lib/train/trainer.py", line 38, in training
self.validate_epoch(epoch)
File "/data/Disk_A/guoyang/mqp/MedicalZooPytorch-master/lib/train/trainer.py", line 83, in validate_epoch
output = self.model(input_tensor)
File "/data/Disk_A/guoyang/.conda/envs/pt041/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/data/Disk_A/guoyang/mqp/MedicalZooPytorch-master/lib/medzoo/Unet3D.py", line 114, in forward
out = self.conv3d_c1_1(x)
File "/data/Disk_A/guoyang/.conda/envs/pt041/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/data/Disk_A/guoyang/.conda/envs/pt041/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 478, in forward
self.padding, self.dilation, self.groups)
RuntimeError: Expected 5-dimensional input for 5-dimensional weight 8 4 3 3, but got 4-dimensional input of size [4, 256, 64, 64] instead
The text was updated successfully, but these errors were encountered: