Detection cropping+saving feature addition for detect.py and PyTorch Hub (#2827)

* Update detect.py

* Update detect.py

* Update greetings.yml

* Update cropping

* cleanup

* Update increment_path()

* Update common.py

* Update detect.py

* Update detect.py

* Update detect.py

* Update common.py

* cleanup

* Update detect.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
BurhanandGlenn Jocher authored and GitHub committed 2021-04-20 23:51:08 +02:00
1 parent c5c647e281
commit c949fc86d1
5 files changed
+56 -29

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ def test(data,
device = select_device(opt.device, batch_size=batch_size)
# Directories
save_dir = Path(increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok)) # increment run
save_dir = increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok) # increment run
(save_dir / 'labels' if save_txt else save_dir).mkdir(parents=True, exist_ok=True) # make dir
# Load model