kousw / stable-diffusion-webui-daam

DAAM for Stable Diffusion Web UI
Other
163 stars 28 forks source link

matplotlib fix #19

Closed Havegum closed 10 months ago

Havegum commented 1 year ago

Adds an install.py-file which ensures matplotlib can use the turbo colormap.

Fixes #18 Fixes #14

konqiDAM commented 1 year ago

Didnt work for me on colab

Error running install.py for extension /content/gdrive/Shareddrives/unlimitedPower/sd_1.5_new/stable-diffusion-webui/extensions/stable-diffusion-webui-daam.
Command: "/usr/bin/python3" "/content/gdrive/Shareddrives/unlimitedPower/sd_1.5_new/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "/content/gdrive/Shareddrives/unlimitedPower/sd_1.5_new/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/install.py", line 1, in <module>
    import launch
ModuleNotFoundError: No module named 'launch'

image

Havegum commented 1 year ago

Did you run the install script manually? The webui runs the install scripts for you on launch and should ensure these kinds of dependencies are available

konqiDAM commented 1 year ago

How do I run it?

NaotoEnjoyer commented 1 year ago

Did you run the install script manually? The webui runs the install scripts for you on launch and should ensure these kinds of dependencies are available

hello man i installed your work that you fixed 11 dec but i get this error no matter what prompts i put there ofc without any weights and other stuff Error running process_batch: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/scripts/daam_script.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 356, in process_batch script.process_batch(p, *script_args, **kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/scripts/daam_script.py", line 132, in process_batch prompt_analyzer = utils.PromptAnalyzer(embedder, styled_prompt) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/scripts/daam/utils.py", line 274, in init remade_tokens, fixes, multipliers, token_count = self.tokenize_line(text, used_custom_terms=self.used_custom_terms, hijack_comments=self.hijack_comments) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/stable-diffusion-webui-daam/scripts/daam/utils.py", line 290, in tokenize_line remade_tokens, fixes, multipliers, token_count = self.clip.tokenize_line(line, used_custom_terms, hijack_comments) TypeError: tokenize_line() takes 2 positional arguments but 4 were given