WongKinYiu / yolov9

Implementation of paper - YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information
GNU General Public License v3.0
8.93k stars 1.41k forks source link

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 3 weeks ago

HZW-WW commented 3 weeks ago

/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 commented 2 weeks ago

What is your system info.?

HZW-WW commented 2 weeks ago

您的系统信息是什么?

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