-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
train error: grad is being used in an in-place operation #196
Comments
Same error. Even on Colab |
Applying the follwing lines in the beginning of my Colab notebook fixed the problem, use the versions below and it should be able to train !pip uninstall torch |
I gotta ask, is models/yolo.py even used in any other files of the repository? |
no, only this process |
Thanks, It works for me too |
Hi
excuse to ask you a question:
File "/home/czhan14x/train_project/ScaledYOLOv4/models/yolo.py", line 141, in _initialize_biases
b[:, 4] += math.log(8 / (640 / s) ** 2) # obj (8 objects per 640 image)
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
this error occurred while I train yolov4-large model in GeForce RTX 3090TI, but It's Ok in Titan RTX, I don't know why?
torch: 1.8.0+cu111
torchvision: 0.9.0+cu111
The text was updated successfully, but these errors were encountered: