Correct the output dir in dataloaders.py (#12771)

Correct the output dir in dataloaders.py

Signed-off-by: Hongbo <12580159+ya0guang@users.noreply.github.com>
This commit is contained in:
Hongbo 2024-03-01 06:32:29 -05:00 committed by GitHub
parent 574331f984
commit b939236170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1085,7 +1085,7 @@ def extract_boxes(path=DATASETS_DIR / "coco128"):
for j, x in enumerate(lb):
c = int(x[0]) # class
f = (path / "classifier") / f"{c}" / f"{path.stem}_{im_file.stem}_{j}.jpg" # new filename
f = (path / "classification") / f"{c}" / f"{path.stem}_{im_file.stem}_{j}.jpg" # new filename
if not f.parent.is_dir():
f.parent.mkdir(parents=True)