You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError "Got unsupported ScalarType BFloat16" in validation when training with amp_dtype="bfloat16" #940
Training GTR-X-seg (task="segment") with amp=True, amp_dtype="bfloat16". Training steps run fine, but validation fails after every epoch, so no metrics are logged and best.pt is never selected. The validator runs under bf16 autocast, and postprocess/ec.py calls .cpu().numpy() on bf16 tensors, which NumPy does not support. postprocess and postprocess_pose in the same file have the same pattern. fp16 and fp32 are not affected.
Thank you for reporting this and for proposing a fix. The fix is minimal and does the job. So I merged it to dev and it will ship on the next release (v1.7.0).
Congratulations on your first contribution to LibreYOLO and thanks again ! 🚀 : )
Activity
Merge pull request #941 from AnuarSv/940-bf16-validation-outputs
EHxuban11 commentedon Oct 17, 2026
Hello @AnuarSv ,
Thank you for reporting this and for proposing a fix. The fix is minimal and does the job. So I merged it to dev and it will ship on the next release (v1.7.0).
Congratulations on your first contribution to LibreYOLO and thanks again ! 🚀 : )