Skip to content

fix FP16 bug of track_id annotation, ReID related#184

Merged
ifzhang merged 1 commit intoFoundationVision:mainfrom
HanGuangXin:main
Apr 27, 2022
Merged

fix FP16 bug of track_id annotation, ReID related#184
ifzhang merged 1 commit intoFoundationVision:mainfrom
HanGuangXin:main

Conversation

@HanGuangXin
Copy link
Contributor

When training with FP16, annotations of bbox and track_id named as targets will be set to torch.float16 from torch.float32.

But actually, track_id annotations will lose their precision during this procedure, resulting wrong labels for ReID module.

tensor FP16

So with the wrong labels, ReID module can not be trained normally, getting extreme low mAP and top-k ranking in person search benchmarks.

search wrong label

After fixing this bug, we can get normal results.

search correct label

@bdpk123
Copy link

bdpk123 commented Sep 14, 2024

Do you mean that we'd better train with torch.float32?

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.

3 participants