Add return check for 'yolo solutions help' (#17518)

This commit is contained in:
Muhammad Rizwan Munawar 2024-11-13 22:28:23 +05:00 committed by GitHub
parent f9d889dd4d
commit 3682f01d12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -671,6 +671,9 @@ def handle_yolo_solutions(args: List[str]) -> None:
)
s_n = "count" # Default solution if none provided
if args and args[0] == "help": # Add check for return if user call `yolo solutions help`
return
cls, method = SOLUTION_MAP[s_n] # solution class name, method name and default source
from ultralytics import solutions # import ultralytics solutions