Update install.py to restrict mediapipe-silicon to arm64

Giving this a shot, on my intel Mac, while installing deps for Batch Face Swap, SD wouldn't start
"stderr: ERROR: Could not find a version that satisfies the requirement mediapipe-silicon (from versions: none)"
Hence, there's no mediapipe-silicon for non silicon CPUs :)
pull/44/head
Julien Banchet 2023-05-02 19:30:37 +02:00 committed by GitHub
parent 60e259d846
commit 50c826cac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ import launch
if not launch.is_installed("mediapipe") or not launch.is_installed("mediapipe-silicon"):
name = "Batch Face Swap"
if platform.system() == "Darwin":
if platform.system() == "Darwin" and platform.machine == "arm64":
# MacOS
launch.run_pip("install mediapipe-silicon", "requirements for Batch Face Swap for MacOS")
else:
launch.run_pip("install mediapipe", "requirements for Batch Face Swap")
launch.run_pip("install mediapipe", "requirements for Batch Face Swap")