d8ahazard / sd_smartprocess

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

ModuleNotFoundError: No module named 'fairscale' Apple Sillicon #36

Closed EliMunkey closed 1 year ago

EliMunkey commented 1 year ago

[notice] A new release of pip is available: 23.0 -> 23.0.1 [notice] To update, run: pip install --upgrade pip

Seems to me that I'm having trouble with both a pip upgrade and ModuleNotFoundError: No module named 'fairscale'

Launching Web UI with arguments: --upcast-sampling --no-half-vae --use-cpu interrogate Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled No module 'xformers'. Proceeding without it.

You are running torch 1.12.1. The program is tested to work with torch 1.13.1. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.

Error loading script: main.py Traceback (most recent call last): File "/Users/eliasmunk/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/Users/eliasmunk/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/eliasmunk/stable-diffusion-webui/extensions/sd_smartprocess/scripts/main.py", line 3, in from extensions.sd_smartprocess import smartprocess File "/Users/eliasmunk/stable-diffusion-webui/extensions/sd_smartprocess/smartprocess.py", line 15, in from extensions.sd_smartprocess.clipinterrogator import ClipInterrogator File "/Users/eliasmunk/stable-diffusion-webui/extensions/sd_smartprocess/clipinterrogator.py", line 14, in from models.blip import blip_decoder, BLIP_Decoder File "/Users/eliasmunk/stable-diffusion-webui/repositories/BLIP/models/blip.py", line 11, in from models.vit import VisionTransformer, interpolate_pos_embed File "/Users/eliasmunk/stable-diffusion-webui/repositories/BLIP/models/vit.py", line 21, in from fairscale.nn.checkpoint.checkpoint_activations import checkpoint_wrapper ModuleNotFoundError: No module named 'fairscale'

EliMunkey commented 1 year ago

I was an idiot and did not have a proper Python installed. Did that and upgraded it to newest > fairscale upgrade