Skip to content
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

RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation. #435

Open
EslamHaourn opened this issue Nov 2, 2023 · 0 comments

Comments

@EslamHaourn
Copy link

[W NNPACK.cpp:80] Could not initialize NNPACK! Reason: Unsupported hardware.
Traceback (most recent call last):
File "train.py", line 468, in
train(hyp, tb_writer, opt, device)
File "train.py", line 80, in train
model = Model(opt.cfg, nc=nc).to(device)
File "/home/eslam/kitti_3parts/PyTorch_YOLOv4-u5/models/yolo.py", line 74, in init
self._initialize_biases() # only run once
File "/home/eslam/kitti_3parts/PyTorch_YOLOv4-u5/models/yolo.py", line 131, 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.

Hello,
This error prevent training to start.
Could you help me know the mistake I do?
kindly, help me. Any help would be appreciated.
Thanks in advance.

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

No branches or pull requests

1 participant