d8ahazard / sd_smartprocess

Smart Pre-processing extension for Stable Diffusion
194 stars 19 forks source link

installed but it says ModuleNotFound? #29

Open Aeychpge opened 1 year ago

Aeychpge commented 1 year ago

stable-diffusion-webui\extensions\sd_smartprocess-main\scripts\main.py", line 3, in from extensions.sd_smartprocess import smartprocess ModuleNotFoundError: No module named 'extensions.sd_smartprocess'

78Alpha commented 1 year ago

That likely relates to it not installing right. I had to manually install a few things for it to popup in the webui, namely, fairscale.

Seems to be a problem with pip, as it makes folders starting with ~ that makes it crap its pants.

ShaguarWKL commented 1 year ago

confirmed that need to manually install fairscale.

.\venv\Scripts\activate pip install fairscale deactivate

start 1111

that's how i got mine working

jparris3213 commented 1 year ago

can confirm! after many different attempts, the following code seems to have worked:

from within your main "stable-diffusion-webui" folder:

.\venv\Scripts\activate - this will activate your virtual environment pip install fairscale - This will install fairscale within the virtual environment itself deactivate - this exits the virtual python environment

from there, start the webui-user.bat as you would normally EDIT: changed webui.bat to webui-user.bat at @ShaguarWKL suggestion

This is under the assumption that the missing module trace continues past ModuleNotFoundError: No module named 'extensions.sd_smartprocess' and ends with:

ModuleNotFoundError: No module named 'fairscale'

ShaguarWKL commented 1 year ago

@jparris3213 better to use webui-user.bat instead of webui.bat so if there are any flags set like --xformers will work.

CamiloMM commented 1 year ago

confirmed that need to manually install fairscale.

.\venv\Scripts\activate pip install fairscale deactivate

start 1111

that's how i got mine working

Thanks! I'll type the words I google with no answer until I found this. Hopefully they pop up for someone searching the same lol

Stable Diffusion Automatic1111 webui ModuleNotFoundError: No module named 'fairscale'

jparris3213 commented 1 year ago

@jparris3213 better to use webui-user.bat instead of webui.bat so if there are any flags set like --xformers will work.

You are correct! my mistake on that, previous post updated

EliMunkey commented 1 year ago

Do we have a solution for this on Apple Sillicon?

Xyem commented 1 year ago

Are you sure this is the actual fix? I had the same error because the extension directory was not called sd_smartprocess. Renaming it back to this fixed the error on mine.

It seems that this extension is sensitive to its own directory name (making it one of the 2 of the 36 I have installed that are, the other being depthmap).

cammytown commented 1 year ago

Is there a reason that fairscale is not is not in the requirements.txt ?

randomizer89 commented 1 year ago

Is there a reason that fairscale is not is not in the requirements.txt ?

IDK, but it's works fine to add fairscale to requirements.txt

jeffjeffjeffh commented 11 months ago

Is there a reason that fairscale is not is not in the requirements.txt ?

Adding fairscale to this file seems to have fixed my problem!