Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a tokenize_line() error #25

Open
adalast opened this issue Jan 22, 2023 · 11 comments
Open

Getting a tokenize_line() error #25

adalast opened this issue Jan 22, 2023 · 11 comments

Comments

@adalast
Copy link

adalast commented Jan 22, 2023

I am trying to use this and keep running into this error:
Traceback (most recent call last):
File "C:\Users\User\stable-diffusion-webui\modules\call_queue.py", line 45, in f
res = list(func(*args, **kwargs))
File "C:\Users\User\stable-diffusion-webui\modules\call_queue.py", line 28, in f
res = func(*args, **kwargs)
File "C:\Users\User\stable-diffusion-webui\modules\txt2img.py", line 49, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "C:\Users\User\stable-diffusion-webui\modules\scripts.py", line 337, in run
processed = script.run(p, *script_args)
File "C:\Users\User\stable-diffusion-webui\extensions\stable-diffusion-webui-daam\scripts\daam_script.py", line 118, in run
prompt_analyzer = utils.PromptAnalyzer(embedder, styled_prompt)
File "C:\Users\User\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 "C:\Users\User\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

@Pyurah
Copy link

Pyurah commented Jan 23, 2023

I get the same error.

@Lordxan
Copy link

Lordxan commented Jan 30, 2023

I had it fixed by using old commit 56028ef but it doesn't work with LoRA

@FurkanGozukara
Copy link
Contributor

same error

1 similar comment
@toyxyz
Copy link

toyxyz commented Feb 4, 2023

same error

@medledan
Copy link

medledan commented Feb 6, 2023

This extension is completely broken. I have the same error.

@FurkanGozukara
Copy link
Contributor

This extension is completely broken. I have the same error.

Use this one it works for most of the tokens

https://github.com/toriato/stable-diffusion-webui-daam

@medledan
Copy link

medledan commented Feb 7, 2023

This extension is completely broken. I have the same error.

Use this one it works for most of the tokens

https://github.com/toriato/stable-diffusion-webui-daam

This extension is working well. Thanks for the suggestion!

@adalast
Copy link
Author

adalast commented Feb 10, 2023

@medledan what did you do to get it working? I deactivated the one that was installed using the UI and did a manual add using the link given and it is still throwing the same error.

@ArgentVASIMR
Copy link

Yet another disgruntled DAAM user here to confirm the same error;
TypeError: FrozenCLIPEmbedderWithCustomWordsBase.tokenize_line() takes 2 positional arguments but 4 were given

@machinesarenotpeople
Copy link

I get TypeError: FrozenCLIPEmbedderWithCustomWordsBase.tokenize_line() takes 2 positional arguments but 4 were given

@guahunyo
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants