Skip to content

Commit 1b62f5b

Browse files
committed
Fix insightface install on windows not using pre-built package #1553
1 parent b13dcd5 commit 1b62f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ai_diffusion/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async def _install_insightface(self, network: QNetworkAccessManager, cb: Interna
245245
dependencies = ["onnx==1.16.1", "onnxruntime"] # onnx version pinned due to #1033
246246
await _execute_process("FaceID", self._pip_install(*dependencies), self.path, cb)
247247

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

0 commit comments

Comments
 (0)