mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
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:
parent
574331f984
commit
b939236170
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user