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

Update train.py

上级 5b6f4c01
......@@ -47,7 +47,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+1) % n
i = (i+4) % n
else:
image, box = get_random_data(annotation_lines[i], input_shape, random=random)
i = (i+1) % n
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册