【问题标题】:Error in training yolo_v3 in google colab using AlexeyAB darknet使用 AlexeyAB 暗网在 google colab 中训练 yolo_v3 时出错
【发布时间】:2020-05-08 11:50:24
【问题描述】:

我正在为 3 个课程训练 yoloV3,并使用 'random = 0','classes = 3','filter = 24 相应地更改了配置文件,并相应地更改了 max_batches。训练开始但总是停止并显示:

[yolo] params: iou loss: mse (2), iou_norm: 0.75, cls_norm: 1.00, scale_x_y: 1.00
  95 route  91                                 ->   26 x  26 x 256 
  96 conv    128       1 x 1/ 1     26 x  26 x 256 ->   26 x  26 x 128 0.044 BF
  97 upsample                 2x    26 x  26 x 128 ->   52 x  52 x 128
  98 route  97 36                              ->   52 x  52 x 384 
  99 conv    128       1 x 1/ 1     52 x  52 x 384 ->   52 x  52 x 128 0.266 BF
 100 conv    256       3 x 3/ 1     52 x  52 x 128 ->   52 x  52 x 256 1.595 BF
 101 conv    128       1 x 1/ 1     52 x  52 x 256 ->   52 x  52 x 128 0.177 BF
 102 conv    256       3 x 3/ 1     52 x  52 x 128 ->   52 x  52 x 256 1.595 BF
 103 conv    128       1 x 1/ 1     52 x  52 x 256 ->   52 x  52 x 128 0.177 BF
 104 conv    256       3 x 3/ 1     52 x  52 x 128 ->   52 x  52 x 256 1.595 BF
 105 conv    255       1 x 1/ 1     52 x  52 x 256 ->   52 x  52 x 255 0.353 BF
 106 yolo
[yolo] params: iou loss: mse (2), iou_norm: 0.75, cls_norm: 1.00, scale_x_y: 1.00
Total BFLOPS 65.879 
avg_outputs = 532444 
 Allocate additional workspace_size = 52.43 MB 
Loading weights from darknet53.conv.74...
 seen 64, trained: 0 K-images (0 Kilo-batches_64) 
Done! Loaded 75 layers from weights-file 
Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
 If error occurs - run training with flag: -dont_show 
Unable to init server: Could not connect: Connection refused

(chart_yolov3_custom2.png:1978): Gtk-WARNING **: 11:20:35.386: cannot open display:

【问题讨论】:

  • "如果发生错误 - 使用标志运行训练:-dont_show" 我会试试这个。
  • @MatiasValdenegro 我已经这样做了

标签: deep-learning gpu yolo darknet


【解决方案1】:

1.要运行 alexab 的暗网,您需要执行多个步骤。您可能错过了其中的一些。请关注setting up yolo by alexab for detection

2.您是否在您的谷歌驱动器(保存您的数据)中同步?

【讨论】:

  • 在我的 Google 云端硬盘中同步是什么意思?我已经安装了我的驱动器并从驱动器本身复制了所有图像、img.data 和名称文件。
  • 你能分享你正在运行的训练 yolo 的代码吗?
  • 需要权限!!打不开
  • 是的,它运行正常
【解决方案2】:

检查 train.txt 文件和 test.txt 文件 如果此文件为空,则会出现上述错误

【讨论】:

    【解决方案3】:

    在训练命令的末尾添加 -dont_show

    【讨论】:

    • 您可能应该考虑解释为什么您的建议有效以及它将实现什么。否则,它看起来更像是评论而不是真正的答案:)
    • @RamiQ 的答案有效,所以我不明白反对意见。他应该解释什么?如果您使用此标志,则不会出现错误消息。我们理解这意味着脚本不会尝试打开与创建弹出窗口的连接。
    猜你喜欢
    • 1970-01-01
    • 2021-08-19
    • 2020-12-10
    • 2021-06-01
    • 2019-08-31
    • 2020-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多