-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Update webui-macos-env.sh #16832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update webui-macos-env.sh #16832
Conversation
fix for this
```
ERROR: Could not find a version that satisfies the requirement torch==2.3.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.3.1
Traceback (most recent call last):
File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 48, in <module>
main()
File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 381, in prepare_environment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/Users/shinriyo/development/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.3.1 torchvision==0.18.1
Error code: 1
```
|
good job.. |
|
i wasted a lot of time, and finally i found this.. |
apply review
|
@tyn513 |
|
@w-e-w Please nuke this PR. Torch 2.2.2 does not work properly and brake all "A" samplers on Mac. As I already wrote many times, people on ARM Macs need to use Homebrew for Mac, not Homebrew for Intel. @shinriyo This will "work", but not as it should. You can find more info here. That was the reason I left Intel at 2.1.2, and not updated Torch to 2.2.2. I am 99.99% sure you are running Intel version of Homebrew on ARM Mac. Please run this: ([[ "$(which brew)" == /opt/homebrew/* ]] && echo "You are using ARM version of Homebrew" || echo "You are using Intel version of Homebrew")EDIT: Also try this: file "$(command -v python3.10)"This is proper, expected result: ❯ file "$(command -v python3.10)"
/opt/homebrew/bin/python3.10: Mach-O 64-bit executable arm64I can bet yours will say something like /opt/homebrew/bin/python3.10: Mach-O 64-bit executable x86_64 |
This is not a proper solution. This will work, but version of PyTorch was buggy, and it will not work with all samplers. Please read my comment above. |
fix for this
Description
Screenshots/videos:
Checklist: