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

Update dataloader.py

上级 cb538495
......@@ -207,6 +207,7 @@ class YoloDataset(Dataset):
shuffle(self.train_lines)
lines = self.train_lines
n = self.train_batches
index = index % n
if self.mosaic:
if self.flag and (index + 4) < n:
img, y = self.get_random_data_with_Mosaic(lines[index:index + 4], self.image_size[0:2])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册