Fixed dataloader CPU bottleneck for small batch sizes (#7659)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
7a39ecd0d3
commit
c267bd3a0c
2 changed files with 2 additions and 5 deletions
|
|
@ -332,10 +332,7 @@ class BaseTrainer:
|
|||
f'Image sizes {self.args.imgsz} train, {self.args.imgsz} val\n'
|
||||
f'Using {self.train_loader.num_workers * (world_size or 1)} dataloader workers\n'
|
||||
f"Logging results to {colorstr('bold', self.save_dir)}\n"
|
||||
f'Starting training for '
|
||||
f'{self.args.time} hours...'
|
||||
if self.args.time
|
||||
else f"{self.epochs} epochs..."
|
||||
f'Starting training for ' + (f"{self.args.time} hours..." if self.args.time else f"{self.epochs} epochs...")
|
||||
)
|
||||
if self.args.close_mosaic:
|
||||
base_idx = (self.epochs - self.args.close_mosaic) * nb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue