【问题标题】:Unable to init server: Could not connect: Connection refused. YOLO on Google Colab无法初始化服务器:无法连接:连接被拒绝。 Google Colab 上的 YOLO
【发布时间】:2020-07-01 04:22:22
【问题描述】:

我第一次尝试在 google colab 上测试 YOLO 并不断遇到这个奇怪的错误:

这是我运行的代码行:

!./darknet detector test data/obj.data cfg/yolov3_custom.cfg /mydrive/yolov3/backup/yolov3_custom_last.weights /mydrive/images/I5.png -thresh 0.3

【问题讨论】:

  • 你找到答案了吗?我在尝试使用终端打开任何图形程序时遇到问题

标签: server connection google-colaboratory yolo darknet


【解决方案1】:

不知道错误是什么,因为我得到了同样的结果。如果你在这行代码后面写下下面的代码你就能看到图片了:

imshow('predictions.jpg')

【讨论】:

    【解决方案2】:

    我也遇到了同样的问题,但通过更新“配置文件”解决了。 可能有一些不平衡的“[”或“#”字符。

    解决方案 1:以这种格式更新您的配置文件? https://github.com/pjreddie/darknet/blob/master/cfg/yolov3.cfg

    解决方案 2:对于某些人来说,在检测命令中使用 -dont_show 标志是有效的。

    例如:!./darknet detector test data/obj.data cfg/yolov3_V1_config.cfg /mydrive/yolov3_V1_config_last.weights /mydrive/yolov3/Poachers/pic2.jpg -thresh 0.3 -dont_show

    【讨论】:

      猜你喜欢
      • 2020-12-09
      • 1970-01-01
      • 1970-01-01
      • 2013-11-18
      • 2019-02-20
      • 2013-05-19
      • 2015-01-31
      • 2015-12-25
      • 2018-10-12
      相关资源
      最近更新 更多