dbolya / tomesd

Speed up Stable Diffusion with this one simple trick!
MIT License
1.29k stars 78 forks source link

mac :Failed to apply ToMe patch, continuing as normal module 'tomesd' has no attribute 'apply_patch' #22

Closed oldwhite83 closed 1 year ago

oldwhite83 commented 1 year ago

setup image

but start ./webui.sh

image

dbolya commented 1 year ago

Hi, this looks like you didn't install tomesd to the correct python environment, as "apply_patch" has been in the tomesd package from day 0.
Regardless, this is not the right place for issues with using tomesd for external applications (unless it's specifically a problem with the tomesd package itself), so closing the issue. If you need help, you should probably ask the thread with the PR / extension you're using.

oldwhite83 commented 1 year ago

Hi, this looks like you didn't install tomesd to the correct python environment, as "apply_patch" has been in the tomesd package from day 0. Regardless, this is not the right place for issues with using tomesd for external applications (unless it's specifically a problem with the tomesd package itself), so closing the issue. If you need help, you should probably ask the thread with the PR / extension you're using.

I found on Google that others have also encountered this problem, but their version is Windows, and mine is Mac. Their solution is:

If you're using Automatic1111 and on Windows, navigate here. stable-diffusion-webui -> venv -> Scripts then in an empty space do Shift + Right Click and Open PowerShell window here. Then input the following command .\activate if you did this correctly, on the left side of the powershell window a green "(venv)" should appear. If so then [proceed with the installation instructions for ToMe here](https://github.com/dbolya/tomesd#installation), pasting the commands from there into the venv powershell window, it should be quite simple from here as you only need to copy and paste 2 things.