sail-sg / EditAnything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc. (ACM MM)
Apache License 2.0
3.23k stars 179 forks source link

Seems a bug in editany_lora.py #50

Closed SkyCol closed 11 months ago

SkyCol commented 11 months ago

the function _get_pipelineembeds will throw an error when the tokens of negtive_prompt greater than prompt.

gasvn commented 11 months ago

Thanks for the feedback. This bug should be fixed in the new github version. You can try it now.

SkyCol commented 11 months ago

Thanks for the feedback. This bug should be fixed in the new github version. You can try it now.

It's not useful by the update, because when count_prompt < count_negative_prompt, the tokenizer of prompt may still > the tokenizer of negative_prompt. However I pulled a request which has solved this problem.