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

Update dataloader.py

上级 6b2d4eee
......@@ -39,7 +39,7 @@ class YoloDataset(Dataset):
# 调整图片大小
new_ar = w / h * self.rand(1 - jitter, 1 + jitter) / self.rand(1 - jitter, 1 + jitter)
scale = self.rand(.5, 1.5)
scale = self.rand(.25, 2)
if new_ar < 1:
nh = int(scale * h)
nw = int(nh * new_ar)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册