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

yolo.py:108: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! #591

Open
HZW-WW opened this issue Sep 26, 2024 · 5 comments

Comments

@HZW-WW
Copy link

HZW-WW commented Sep 26, 2024

/home/aaa/me/yolov9-main/models/yolo.py:108: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
elif self.dynamic or self.shape != shape:

When training the train_dual.py file, this warning was reported during training. Does it affect normal training? How to solve this problem? The problem seems to be line 229 of the yolo. py file: elif self.dynamic or self.shape != shape:

@darkstar1227
Copy link

What is your system info.?

@HZW-WW
Copy link
Author

HZW-WW commented Oct 1, 2024

您的系统信息是什么?

torch=1.12.1+cu113,python=3.8,linux system,Ubantu 20.04.3 LTS

@darkstar1227
Copy link

您的系统信息是什么?

torch=1.12.1+cu113,python=3.8,linux system,Ubantu 20.04.3 LTS

It's seems to old.

@HZW-WW
Copy link
Author

HZW-WW commented Oct 30, 2024

您的系统信息是什么?

torch=1.12.1+cu113,python=3.8,linux system,Ubantu 20.04.3 LTS

It's seems to old.

Do you mean the python version or the torch version?

@darkstar1227
Copy link

darkstar1227 commented Oct 30, 2024

您的系统信息是什么?

torch=1.12.1+cu113,python=3.8,linux system,Ubantu 20.04.3 LTS

It's seems to old.

Do you mean the python version or the torch version?

Torch and cuda.
I suggest to use cuda 11.3 & torch 1.11.0 with pillow 9.5

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

2 participants