Update train.py

pull/84/merge
Peter Lin 3 years ago committed by GitHub
parent 9a59d5c6b2
commit e58f7bbdf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -473,7 +473,7 @@ class Trainer:
def random_crop(self, *imgs):
h, w = imgs[0].shape[-2:]
w = random.choice(range(w // 2, w))
h = random.choice(range(w // 2, h))
h = random.choice(range(h // 2, h))
results = []
for img in imgs:
B, T = img.shape[:2]

Loading…
Cancel
Save