hpc203 / yolov5-dnn-cpp-python-v2

用opencv的dnn模块做yolov5目标检测,包含C++和Python两个版本的程序,优化后的

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

转换时的警告

JiaPai12138 opened this issue · comments

TracerWarning: Converting a tensor to a Python integer 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!

相关代码:route = F.interpolate(xRt2, size=(int(xRt2.shape[2] * 2), int(xRt2.shape[3] * 2)), mode='nearest')

大佬 请问这个警告影响推理吗?

谢谢解答