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

RuntimeError: expected scalar type Float but found Half #30

Closed
shenshi19 opened this issue May 12, 2022 · 0 comments
Closed

RuntimeError: expected scalar type Float but found Half #30

shenshi19 opened this issue May 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@shenshi19
Copy link

shenshi19 commented May 12, 2022

Epoch gpu_mem box obj cls labels img_size
0/199 4.87G 0.1106 0.01998 0 13 640: 100%|██████████| 567/567 [01:50<00:00, 5.14it/s]
Class Images Labels P R mAP@.5 mAP@.5:.95: 0%| | 0/78 [00:00<?, ?
Traceback (most recent call last):
File "train.py", line 675, in
main(opt)
File "train.py", line 572, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 396, in train
results, maps, _ = val.run(data_dict,
RuntimeError: expected scalar type Float but found Half
大佬,所有的swin都会出现这个问题是什么原因呢

@shenshi19 shenshi19 added the bug Something isn't working label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant