mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
fix im_files (#460)
This commit is contained in:
parent
453b5f259a
commit
db26ccba94
@ -88,6 +88,7 @@ class YOLODataset(BaseDataset):
|
||||
x["results"] = nf, nm, ne, nc, len(self.im_files)
|
||||
x["msgs"] = msgs # warnings
|
||||
x["version"] = self.cache_version # cache version
|
||||
self.im_files = [lb["im_file"] for lb in x["labels"]]
|
||||
try:
|
||||
np.save(path, x) # save cache for next time
|
||||
path.with_suffix(".cache.npy").rename(path) # remove .npy suffix
|
||||
|
Loading…
x
Reference in New Issue
Block a user