Start Multi-OS CI (#172)

This commit is contained in:
Glenn Jocher 2023-01-10 08:23:32 +01:00 committed by GitHub
parent 202f7bffa3
commit f80ff923e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 25 deletions

View file

@ -72,7 +72,8 @@ class ClassificationTrainer(BaseTrainer):
imgsz=self.args.imgsz,
batch_size=batch_size if mode == "train" else (batch_size * 2),
augment=mode == "train",
rank=rank)
rank=rank,
workers=self.args.workers)
def preprocess_batch(self, batch):
batch["img"] = batch["img"].to(self.device)