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
parent
60e259d846
commit
50c826cac2
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue