yolov7
yolov7 copied to clipboard
it reported an error in loss.backward()
Error detected in SigmoidBackward0. Traceback of forward call that caused the error:
File "test.py", line 636, in
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [32, 3, 1, 1, 85]], which is output 0 of SigmoidBackward0, is at version 2; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!