-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Minor fix #10381
Minor fix #10381
Conversation
Changing As for the question mark in image names, I'd rather remove the question mark than downgrade gradio for it. |
Well, I tried |
Not sure what PyTorch does, both look like they only index |
I checked it and it has nothing to do with Gradio and WebUI, it's an environment related issue. |
All right. There is a problem. Tests here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/6b51cc7530dd70037681c108a65c55d52ed918ef/.github/workflows/run_tests.yaml#LL26C11-L26C64 install CPU torch using the same command. So if the command is changed in the way this PR is suggesting, test will fail. We can edit edit tests to explicitly specify the command there, but then we'd have to keep torch version updated in two places: in launch and in tests. So the question is, is this fix really useful? |
Changes from: to torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118") It does not work? Still has problem of "RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install." |
Try using the |
I moved old venv to "venvback" , and re-run .webui.sh (with modified launch.py as above suggested) , it will re-install venv, just got same result of "RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install." |
What are your startup parameters? |
Launching Web UI with arguments: --xformers --share --enable-insecure-extension-access --listen |
Try removing |
yeah, it can work . will it work for later launch adding --xformers back? |
This is caused by the incompatibility of xformers with the current PyTorch. |
To fix this, xformers needs to be upgraded to 0.0.20.dev539. |
I see, thanks lot for explains! |
I have xformers 0.0.17 as specified by repo and it works out of the box with no problems. Is this linux specific? |
xformers did not update CI to PyTorch 2.0.1 until today. facebookresearch/xformers@a721581 |
At present, only dev539 should be effective, not sure if they update the old version. |
I noticed that Linux uses a different installation command, so the problem should only occur in Linux, and the solution is to modify the command. stable-diffusion-webui/launch.py Lines 285 to 295 in 9a9557e
|
hi, I use the latest stable-diffusion-webui, and now I also encounter this error. how can i solve it
|
|
stable-diffusion-webui/launch.py Line 296 in 96cba45
You can clearly see that they are inconsistent, of course, you can also directly modify them to be the same, and then delete |
This PR tries to close #10331