d8ahazard / sd_smartprocess

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

ModuleNotFoundError: No module named 'fairscale #42

Open sLayer-o2 opened 1 year ago

sLayer-o2 commented 1 year ago

I recently build a AI generator it works but not quite. if i feeding it with some images it will say

Traceback (most recent call last): File "D:\Downloads\kohya_ss-master\kohya_ss-master\finetune\make_captions.py", line 14, in from blip.blip import blip_decoder File "D:\Downloads\kohya_ss-master\kohya_ss-master\finetune\blip\blip.py", line 13, in from blip.vit import VisionTransformer, interpolate_pos_embed File "D:\Downloads\kohya_ss-master\kohya_ss-master\finetune\blip\vit.py", line 21, in from fairscale.nn.checkpoint.checkpoint_activations import checkpoint_wrapper ModuleNotFoundError: No module named 'fairscale'

but on my PIP modules are all good they have fairscale install.

asgeorges commented 1 year ago

How do you know you successfully installed? Did you do pip list?

Might want to try doing

pip install fairscale

manually

mhvelplund commented 1 year ago

I started a command line in the web-ui folder and ran:

.\venv\Scripts\activate.bat
pip install fairscale

That fixed this issue.