hnmr293 / sd-webui-cutoff

Cutoff - Cutting Off Prompt Effect
Other
1.2k stars 85 forks source link

[BUG?]: import name issue #33

Open Woisek opened 4 months ago

Woisek commented 4 months ago

With A1111 v1.8.0, I get the following error on startup:

*** Error loading script: cutoff.py Traceback (most recent call last): File "V:\AI_programms\stable-diffusion-webui-180\modules\scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "V:\AI_programms\stable-diffusion-webui-180\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "V:\AI_programms\stable-diffusion-webui-180\extensions\sd-webui-cutoff\scripts\cutoff.py", line 13, in from scripts.cutofflib.embedding import CLIP, CLIP_SDXL, generate_prompts, token_to_block ImportError: cannot import name 'CLIP_SDXL' from 'scripts.cutofflib.embedding' (V:\AI_programms\stable-diffusion-webui-180\scripts\cutofflib\embedding.py)


Any ideas what this causes and if it can/will be fixed? 🤔 Also, how is the status of cutoff in regard to functioning with photo real checkpoints?