-
Notifications
You must be signed in to change notification settings - Fork 2
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
ValueError #10
Comments
您好 请问您解决了吗? |
No, not yet. |
Hi, @mnazari123 @ClsFaith Using a larger batch size(>1) may solve the problem. |
I followed up all the instruction as it has been written. I am trying to run the segmentation part of the model in 1 GPU; unfortunately, unlike the depth I got an error that I could not solve that. I would appreciate If you have any suggestion for the changes needed to make it work for the single gpu.
Here is the error in the file:
File "/media/user/meta/segmentation/models/model.py", line 216, in forward_train
loss_decode = self._decode_head_forward_train(x, img_metas,
File "/media/user/meta/segmentation/models/model.py", line 149, in _decode_head_forward_train
loss_decode = self.decode_head.forward_train(x, img_metas,
Here is the error:
File "/home/user/seg_env/lib/python3.10/site-packages/torch/nn/functional.py", line 2416, in _verify_batch_size
raise ValueError("Expected more than 1 value per channel when training, got input size {}".format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])
The text was updated successfully, but these errors were encountered: