Skip to content

Commit

Permalink
Remove "show" from the YOLOv8 detector.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed May 23, 2023
1 parent b32c31a commit 6c06996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepface/detectors/Yolov8faceWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _build_model(weights_path: str = func_weights_path, url: str = func_url):
def detect_face(face_detector, img, align=False):
resp = []

results = face_detector.predict(img, verbose=False, show=True, conf=0.25)[0]
results = face_detector.predict(img, verbose=False, show=False, conf=0.25)[0]

for result in results:
x, y, w, h = result.boxes.xywh.tolist()[0]
Expand Down

0 comments on commit 6c06996

Please sign in to comment.