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

FIX: RuntimeError: expected scalar type Float but found Half error on… #1820

Merged

Conversation

MlaikahImdad
Copy link
Contributor

For the CLIP model, if I run the following command
python track.py --source=coffeshop_short.mp4 --yolo-model=yolov8n.engine --reid-model=clip_market1501.pt --half
I get this errror
File "/usr/local/lib/python3.8/dist-packages/torch/nn/functional.py", line 2486, in layer_norm
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: expected scalar type Float but found Half
I fixed this issue.

@mikel-brostrom
Copy link
Owner

Nice! Thanks for contributing 🚀

@mikel-brostrom mikel-brostrom merged commit 6052830 into mikel-brostrom:master Feb 15, 2025
12 checks passed
@MlaikahImdad MlaikahImdad deleted the fix-clip-half-error branch February 21, 2025 15:01
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

Successfully merging this pull request may close these issues.

2 participants