Update caching (#1496)

This commit is contained in:
Glenn Jocher committed 2020-11-24 16:23:00 +01:00
1 parent 0822cda781
commit bde5d9aaaa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -472,7 +472,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
x['hash'] = get_hash(self.label_files + self.img_files)
x['results'] = [nf, nm, ne, nc, i]
torch.save(x, path) # save for next time
logging.info(f"New cache created: '{path}'")
logging.info(f"New cache created: {path}")
return x
def __len__(self):