Optimizer.step() -- ok; scaler.step(optimizer): No inf checks were recorded for this optimizer

i get the same troble and i do not know how to solute it. i will appreciate it if you can give me some suggestions.
here is the link: Yolov5-mask : No inf checks were recorded for this optimizer