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

bug #76

Open
liuzimo opened this issue Mar 22, 2023 · 0 comments
Open

bug #76

liuzimo opened this issue Mar 22, 2023 · 0 comments

Comments

@liuzimo
Copy link

liuzimo commented Mar 22, 2023

Traceback (most recent call last):
File "train.py", line 107, in
iou_loss, obj_loss, cls_loss, total_loss = utils.loss.compute_loss(preds, targets, cfg, device)
File "E:\Backup\Desktop\Yolo-Fast\utils\loss.py", line 147, in compute_loss
tcls, tbox, indices, anchors = build_target(preds, targets, cfg, device)
File "E:\Backup\Desktop\Yolo-Fast\utils\loss.py", line 120, in build_target
indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices
RuntimeError: result type Float can't be cast to the desired output type __int64

pytorch 1.12.1

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