ai-forever / Kandinsky-3

https://ai-forever.github.io/Kandinsky-3/
Apache License 2.0
290 stars 27 forks source link

Early negative prompt truncation #18

Open vsevolod-oparin opened 4 months ago

vsevolod-oparin commented 4 months ago

Not 100%, but implementations here and diffusers seem to truncate negative prompt early if the positive prompt is shorter. Is it intended?

https://github.com/ai-forever/Kandinsky-3/blob/main/kandinsky3/condition_processors.py#L45C13-L45C91 https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py#L219