diff --git a/nets/yolo_training.py b/nets/yolo_training.py index b7b03cad7440583001627aacb7d2f5667f1036d2..37ea12436bdb24af4c8ecd5ee428a64ac240287d 100644 --- a/nets/yolo_training.py +++ b/nets/yolo_training.py @@ -333,7 +333,7 @@ class Generator(object): # resize image new_ar = w/h * rand(1-jitter,1+jitter)/rand(1-jitter,1+jitter) - scale = rand(.5, 1.5) + scale = rand(.25, 2) if new_ar < 1: nh = int(scale*h) nw = int(nh*new_ar)