[Fix] Allow mixed precision training with SimOTAAssigner (#7516)
* Convert valid_pred_scores to float32 in sim_ota_assigner Workaround to resolve `RuntimeError: "sqrt" "_vml_cpu" not implemented for 'Half'` * Add unit test for SimOTAAssigner * Cast output of binary_cross_entropy back to float16 if needed Also fix yapf lint issue. * Lint for yapf * More lint fixes on test_assigner.py * Cast cls_scores back to float16 directly Co-Authored-By: Wenwei Zhang <ZwwWayne@users.noreply.github.com> Co-authored-by: Wenwei Zhang <ZwwWayne@users.noreply.github.com>pull/7502/head
parent
b252574e20
commit
0af7f25a73
2 changed files with 23 additions and 5 deletions
Loading…
Reference in new issue