Skip to content

Commit

Permalink
fix install error
Browse files Browse the repository at this point in the history
  • Loading branch information
ototadana committed Jul 13, 2023
1 parent 37db1f6 commit 81923e3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/inferencers/insightface/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ def name(self) -> str:
return "InsightFace"

def requirements(self) -> List[str]:
return ["insightface"]
return ['"insightface>=0.7.3"', "onnxruntime"]

def install(self) -> None:
try:
from scripts.inferencers.insightface.detector import InsightFaceDetector

InsightFaceDetector()
except Exception:
super().install()
return None

0 comments on commit 81923e3

Please sign in to comment.