ultralytics 8.1.25 fix **kwargs: (dict) warnings (#8815)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
f8f62bc649
commit
2bc605f32a
12 changed files with 22 additions and 22 deletions
|
|
@ -280,7 +280,7 @@ class BaseTrainer:
|
|||
# Check imgsz
|
||||
gs = max(int(self.model.stride.max() if hasattr(self.model, "stride") else 32), 32) # grid size (max stride)
|
||||
self.args.imgsz = check_imgsz(self.args.imgsz, stride=gs, floor=gs, max_dim=1)
|
||||
self.stride = gs # for multi-scale training
|
||||
self.stride = gs # for multiscale training
|
||||
|
||||
# Batch size
|
||||
if self.batch_size == -1 and RANK == -1: # single-GPU only, estimate best batch size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue