Oliver Nitsche Claude Sonnet 4.6 commited on
Commit
8ed4512
·
1 Parent(s): 1f086bc

Fix model extraction path for buffalo_sc v0.7 zip

Browse files

The InsightFace buffalo_sc.zip release changed its internal layout —
files are now at the zip root (w600k_mbf.onnx) rather than under a
buffalo_sc/ subdirectory. The mismatched path caused a KeyError on
first run, crashing the app with exit code 1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. recognizer/face_db.py +1 -1
recognizer/face_db.py CHANGED
@@ -29,7 +29,7 @@ MODEL_URL = (
29
  "https://github.com/deepinsight/insightface"
30
  "/releases/download/v0.7/buffalo_sc.zip"
31
  )
32
- _REC_ENTRY = "buffalo_sc/w600k_mbf.onnx" # path inside the zip
33
 
34
  _CASCADE = cv2.CascadeClassifier(
35
  cv2.data.haarcascades + "haarcascade_frontalface_default.xml"
 
29
  "https://github.com/deepinsight/insightface"
30
  "/releases/download/v0.7/buffalo_sc.zip"
31
  )
32
+ _REC_ENTRY = "w600k_mbf.onnx" # path inside the zip (root-level since buffalo_sc v0.7)
33
 
34
  _CASCADE = cv2.CascadeClassifier(
35
  cv2.data.haarcascades + "haarcascade_frontalface_default.xml"