语法错误接近意外的令牌`('当在COLAB上在图像上运行自定义检测器时,我所有的文件都保存在Google Drive上

发布于 2025-02-03 00:04:49 字数 711 浏览 5 评论 0原文

我试图使用此命令在图像上运行自定义检测器。 (Thresh标志设置对象检测所需的最低准确性)在COLAB上,我所有的文件都保存在Google Drive上。

' !./darknet detector test data/obj.data cfg/yolov4-custom.cfg /content/drive/MyDrive/yolov4_darknet/training/yolov4-custom_best.weights /content/drive/MyDrive/yolov4_darknet/vehicle_test_images/20220421_103809.jpg -thresh 0.3 imshow('precadionions.jpg') “

问题是我正在收到一条语法错误消息

。 /bin/bash:-c:第0行:语法错误接近意外令牌('/bin/bash:-c:-c:line 0: ./ darknet检测器测试数据/obj.data cfg/yolov4-- custom.cfg/content/drive/ylive/yolov4_darknet/training/yolov4-custom_best.weights/content/content/drive/mydrive/mydrive/yolov4_darknet/vehicle_test_test_images/202204220421_10421_1038099.jpg -tresiveions '

我如何解决问题?

I am trying to Run custom detector on an image with this command. (The thresh flag sets the minimum accuracy required for object detection) on COLAB, all my files save on google drive.

'
!./darknet detector test data/obj.data cfg/yolov4-custom.cfg /content/drive/MyDrive/yolov4_darknet/training/yolov4-custom_best.weights /content/drive/MyDrive/yolov4_darknet/vehicle_test_images/20220421_103809.jpg -thresh 0.3 imShow('predictions.jpg')
'

The problem is that I am getting a syntax error message saying

'
/bin/bash: -c: line 0: syntax error near unexpected token (' /bin/bash: -c: line 0:./darknet detector test data/obj.data cfg/yolov4-custom.cfg /content/drive/MyDrive/yolov4_darknet/training/yolov4-custom_best.weights /content/drive/MyDrive/yolov4_darknet/vehicle_test_images/20220421_103809.jpg -thresh 0.3 imShow('predictions.jpg')'
'

How do i fix the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文