|
|
@ -88,6 +88,7 @@ class YOLODataset(BaseDataset):
|
|
|
|
x["results"] = nf, nm, ne, nc, len(self.im_files)
|
|
|
|
x["results"] = nf, nm, ne, nc, len(self.im_files)
|
|
|
|
x["msgs"] = msgs # warnings
|
|
|
|
x["msgs"] = msgs # warnings
|
|
|
|
x["version"] = self.cache_version # cache version
|
|
|
|
x["version"] = self.cache_version # cache version
|
|
|
|
|
|
|
|
self.im_files = [lb["im_file"] for lb in x["labels"]]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
np.save(path, x) # save cache for next time
|
|
|
|
np.save(path, x) # save cache for next time
|
|
|
|
path.with_suffix(".cache.npy").rename(path) # remove .npy suffix
|
|
|
|
path.with_suffix(".cache.npy").rename(path) # remove .npy suffix
|
|
|
|