未验证 提交 a0508376 编写于 作者: B Bubbliiiing 提交者: GitHub

Update train.py

上级 56100f24
......@@ -45,7 +45,7 @@ def data_generator(annotation_lines, batch_size, input_shape, anchors, num_class
if mosaic:
if flag and (i+4) < n:
image, box = get_random_data_with_Mosaic(annotation_lines[i:i+4], input_shape)
i = (i+4) % n
i = (i+1) % n
else:
image, box = get_random_data(annotation_lines[i], input_shape)
i = (i+1) % n
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册