Closed int11 closed 2 months ago
It's used to make sure pure float32 for loss during the criterion
phase. And I'm not sure the mAP result when enabled=True
. Can you check it?
I checked and it doesn't seem to mean much to speed impact. I think it's my mistake.
i assume that AMP logic is don't work even if use_amp=True or scaler is not None. because torch.autocast enabled flag is always False
https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetrv2_pytorch/src/solver/det_engine.py#L48
i check that training speed much faster after fix code There is any reason that always enabled flag is False? is that bug?