Commit
•
bde5d9a
1
Parent(s):
0822cda
Update caching (#1496)
Browse files- train.py +1 -1
- utils/datasets.py +1 -1
train.py
CHANGED
@@ -412,7 +412,7 @@ if __name__ == '__main__':
|
|
412 |
parser = argparse.ArgumentParser()
|
413 |
parser.add_argument('--weights', type=str, default='yolov5s.pt', help='initial weights path')
|
414 |
parser.add_argument('--cfg', type=str, default='', help='model.yaml path')
|
415 |
-
parser.add_argument('--data', type=str, default='data/
|
416 |
parser.add_argument('--hyp', type=str, default='data/hyp.scratch.yaml', help='hyperparameters path')
|
417 |
parser.add_argument('--epochs', type=int, default=300)
|
418 |
parser.add_argument('--batch-size', type=int, default=16, help='total batch size for all GPUs')
|
|
|
412 |
parser = argparse.ArgumentParser()
|
413 |
parser.add_argument('--weights', type=str, default='yolov5s.pt', help='initial weights path')
|
414 |
parser.add_argument('--cfg', type=str, default='', help='model.yaml path')
|
415 |
+
parser.add_argument('--data', type=str, default='data/coco128.yaml', help='data.yaml path')
|
416 |
parser.add_argument('--hyp', type=str, default='data/hyp.scratch.yaml', help='hyperparameters path')
|
417 |
parser.add_argument('--epochs', type=int, default=300)
|
418 |
parser.add_argument('--batch-size', type=int, default=16, help='total batch size for all GPUs')
|
utils/datasets.py
CHANGED
@@ -472,7 +472,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
|
|
472 |
x['hash'] = get_hash(self.label_files + self.img_files)
|
473 |
x['results'] = [nf, nm, ne, nc, i]
|
474 |
torch.save(x, path) # save for next time
|
475 |
-
logging.info(f"New cache created:
|
476 |
return x
|
477 |
|
478 |
def __len__(self):
|
|
|
472 |
x['hash'] = get_hash(self.label_files + self.img_files)
|
473 |
x['results'] = [nf, nm, ne, nc, i]
|
474 |
torch.save(x, path) # save for next time
|
475 |
+
logging.info(f"New cache created: {path}")
|
476 |
return x
|
477 |
|
478 |
def __len__(self):
|