Skip to content

Commit

Permalink
Update example 01 to be compatible with CPU-Only
Browse files Browse the repository at this point in the history
  • Loading branch information
rathaumons committed Jun 30, 2023
1 parent 2cddb17 commit 88c2663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example_01_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

image = "data/gta.jpg"

# Detect people and save as visualized image detection_output.jpg using Ultralytics
setMainDetector("YOLO_Ultralytics") # Set by name using internal configs
# Detect people and save as visualized image detection_output.jpg using YOLO Classic
setMainDetector("YOLO_Classic") # Set by name using internal configs
detected_people, visual_image = detectPeople(
img=image, # Give an image to detect people
visual=True, # Set True to visualize the detected people
Expand Down

0 comments on commit 88c2663

Please sign in to comment.