Skip to content

Commit

Permalink
Fix insightface install on windows not using pre-built package #1553
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Jan 21, 2025
1 parent b13dcd5 commit 1b62f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_diffusion/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def _install_insightface(self, network: QNetworkAccessManager, cb: Interna
dependencies = ["onnx==1.16.1", "onnxruntime"] # onnx version pinned due to #1033
await _execute_process("FaceID", self._pip_install(*dependencies), self.path, cb)

pyver = await get_python_version(self._python_cmd)
pyver = await get_python_version_string(self._python_cmd)
if is_windows and "3.11" in pyver:
whl_file = self._cache_dir / "insightface-0.7.3-cp311-cp311-win_amd64.whl"
whl_url = "https://github.com/bihailantian655/insightface_wheel/raw/main/insightface-0.7.3-cp311-cp311-win_amd64%20(1).whl"
Expand Down

0 comments on commit 1b62f5b

Please sign in to comment.