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: Cannot set version_counter for inference tensor #622

Open
Aditya5191 opened this issue Aug 9, 2024 · 2 comments
Open

RuntimeError: Cannot set version_counter for inference tensor #622

Aditya5191 opened this issue Aug 9, 2024 · 2 comments

Comments

@Aditya5191
Copy link

Aditya5191 commented Aug 9, 2024

I am trying to run YoloV8 on my AMD RX550 using DirectML and every time i run the training it fails with this error
RuntimeError: Cannot set version_counter for inference tensor

from ultralytics import YOLO
import torch_directml
model = YOLO("yolov8n.yaml")
dml = torch_directml.device()
model.train(data="config.yaml", epochs=200, device=dml)

This works properly if i set device="cpu"
Please help me with this.. I'm new to Machine learning stuff.

@Hoernchen
Copy link

Same issue with pytorch + autocast on a 6900xt...

@larinius
Copy link

larinius commented Nov 9, 2024

I have same issue now.
In 2023 used Comfy UI with the same AMD GPU and Direct ML device, it worked 100%. Maybe they broke something in resent updates?

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

3 participants