Fixed multiscale preprocess_batch (#15392)
This commit is contained in:
parent
63e26e1fc8
commit
592f421663
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class DetectionTrainer(BaseTrainer):
|
|||
if self.args.multi_scale:
|
||||
imgs = batch["img"]
|
||||
sz = (
|
||||
random.randrange(self.args.imgsz * 0.5, self.args.imgsz * 1.5 + self.stride)
|
||||
random.randrange(int(self.args.imgsz * 0.5), int(self.args.imgsz * 1.5 + self.stride))
|
||||
// self.stride
|
||||
* self.stride
|
||||
) # size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue