Skip to content

Commit

Permalink
Merge pull request #101 from ultralytics/master
Browse files Browse the repository at this point in the history
Correct the output dir in dataloaders.py (ultralytics#12771)
  • Loading branch information
NagatoYuki0943 committed Mar 2, 2024
2 parents 5d39315 + b939236 commit 48e6a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 48e6a3a

Please sign in to comment.