Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

value cannot be converted to type int without overflow #834

Open
gosling123456 opened this issue Sep 20, 2024 · 0 comments
Open

value cannot be converted to type int without overflow #834

gosling123456 opened this issue Sep 20, 2024 · 0 comments

Comments

@gosling123456
Copy link

Traceback (most recent call last):
File "train.py", line 216, in
main(args)
File "train.py", line 154, in main
confmat = evaluate(model, val_loader, device=device, num_classes=num_classes)
File "/home/ma-user/work/SEG/deep-learning-for-image-processing/pytorch_segmentation/deeplab_v3/train_utils/train_and_eval.py", line 29, in evaluate
confmat.update(target.flatten(), output.argmax(1).flatten())
File "/home/ma-user/work/SEG/deep-learning-for-image-processing/pytorch_segmentation/deeplab_v3/train_utils/distributed_utils.py", line 88, in update
self.mat += torch.bincount(inds, minlength=n**2).reshape(n, n)
RuntimeError: value cannot be converted to type int without overflow

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant