Fix file_name in save_crop (#17499)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
496e6a3b86
commit
ba41def4f9
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ class Results(SimpleClass):
|
||||||
save_one_box(
|
save_one_box(
|
||||||
d.xyxy,
|
d.xyxy,
|
||||||
self.orig_img.copy(),
|
self.orig_img.copy(),
|
||||||
file=Path(save_dir) / self.names[int(d.cls)] / f"{Path(file_name)}.jpg",
|
file=Path(save_dir) / self.names[int(d.cls)] / Path(file_name).with_suffix(".jpg"),
|
||||||
BGR=True,
|
BGR=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue