boulama commited on
Commit
d3bf996
1 Parent(s): 4094ffa

Update README.md

Browse files

Corrected model inference in YOLOv8 Face Detection script to use the loaded model for inference.

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -34,7 +34,7 @@ model = YOLO(model_path)
34
 
35
  # inference
36
  image_path = "/path/to/image"
37
- output = YOLO(Image.open(image_path))
38
  results = Detections.from_ultralytics(output[0])
39
 
40
  ```
 
34
 
35
  # inference
36
  image_path = "/path/to/image"
37
+ output = model(Image.open(image_path))
38
  results = Detections.from_ultralytics(output[0])
39
 
40
  ```