hpc203 / yolov5-dnn-cpp-python-v2

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

转换时的警告 #11

Closed JiaPai12138 closed 2 years ago

JiaPai12138 commented 2 years ago

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')

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

hpc203 commented 2 years ago

不影响的

---原始邮件--- 发件人: @.> 发送时间: 2021年12月9日(周四) 上午7:42 收件人: @.>; 抄送: @.***>; 主题: [hpc203/yolov5-dnn-cpp-python-v2] 转换时的警告 (Issue #11)

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')

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

JiaPai12138 commented 2 years ago

谢谢解答