Skip to content
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

expected dtype Byte but got dtype Bool #12

Open
Fee532 opened this issue Jan 14, 2021 · 1 comment
Open

expected dtype Byte but got dtype Bool #12

Fee532 opened this issue Jan 14, 2021 · 1 comment

Comments

@Fee532
Copy link

Fee532 commented Jan 14, 2021

Traceback (most recent call last):
File "/home/fee/PycharmProjects/YOLOv3-quadrangle/train.py", line 173, in
main(opt)
File "/home/fee/PycharmProjects/YOLOv3-quadrangle/train.py", line 109, in main
loss = model(imgs.to(device), targets, requestPrecision=True)
File "/home/fee/.conda/envs/envhrank/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/fee/PycharmProjects/YOLOv3-quadrangle/models.py", line 235, in forward
x, *losses = module[0](x, targets, requestPrecision)
File "/home/fee/.conda/envs/envhrank/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/fee/PycharmProjects/YOLOv3-quadrangle/models.py", line 149, in forward
requestPrecision)
File "/home/fee/PycharmProjects/YOLOv3-quadrangle/utils/utils.py", line 257, in build_targets
TP[b, i] = (pconf > 0.5) & (iou_pred > 0.5) & (pcls == tc.cpu())
RuntimeError: expected dtype Byte but got dtype Bool

Process finished with exit code 1
environment: pytorch 1.4.0 python3.6

@Fee532
Copy link
Author

Fee532 commented Jan 15, 2021

solved method: use pytorch 1.1.0

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

No branches or pull requests

1 participant