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

Prompt weight info and parentheses passed to text_encoder #22

Closed
david-rokeby opened this issue Apr 11, 2023 · 4 comments
Closed

Prompt weight info and parentheses passed to text_encoder #22

david-rokeby opened this issue Apr 11, 2023 · 4 comments

Comments

@david-rokeby
Copy link

As far as I can tell, if you send a prompt like

(A lovely beach-side cottage in the southern seas)0.5

the entire prompt including the parentheses and the 0.5 weight are passed into the tokenizer, and those additional tokens are passed along to the text_encoder.

Am I reading this correctly or have I missed something?
Is this the appropriate thing to do? I would have assumed that this additional weighting syntactical stuff should be removed before passing to the encoder.

@damian0815
Copy link
Owner

damian0815 commented Apr 13, 2023

hmm, that should'n't be happening. can you post the complete sequence of calls? if you're doing compel("prompt") then the prompt is being parsed into a tree structure first, which is used to guide the assembly of the embedding tensor (eg applying weights/blends), and this is then returned.

@david-rokeby
Copy link
Author

david-rokeby commented Apr 13, 2023 via email

@damian0815
Copy link
Owner

thanks, that seems like a parser bug, i'll take a look

@damian0815
Copy link
Owner

yes, that's a bug. fixed in compel v1.1.1 (just released)

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

2 participants