Skip to content

Commit

Permalink
fix imgsz error (#41)
Browse files Browse the repository at this point in the history
* fix imgsz error

* update tov 5.0.10
  • Loading branch information
fcakyon authored Sep 17, 2021
1 parent 4aaf354 commit 0d03de6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yolov5/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from yolov5.helpers import YOLOv5
from yolov5.helpers import load_model as load

__version__ = "5.0.9"
__version__ = "5.0.10"
3 changes: 3 additions & 0 deletions yolov5/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def run(weights='yolov5s.pt', # model.pt path(s)
save_img = not nosave and not source.endswith('.txt') # save inference images
webcam = source.isnumeric() or source.endswith('.txt') or source.lower().startswith(
('rtsp://', 'rtmp://', 'http://', 'https://'))

if isinstance(imgsz, int):
imgsz = [imgsz, imgsz]

# Directories
save_dir = increment_path(Path(project) / name, exist_ok=exist_ok) # increment run
Expand Down

0 comments on commit 0d03de6

Please sign in to comment.