ostris / ai-toolkit

Various AI scripts. Mostly Stable Diffusion stuff.
MIT License
220 stars 25 forks source link

[Feature] Compel support #13

Closed DenisSergeevitch closed 10 months ago

DenisSergeevitch commented 10 months ago

Hi, I tested your Lora slider Colab, and it works great. Thank you for this project!

During testing, I found that for a precise slider, it is best for the --m +10 and --m -10 prompts to be as close visually as possible, i.e. "sunny day, sepia photo" vs "sunny day, modern photo". However, on the default prompt engineering level, each prompt produced drastically different results, even with a fixed seed, which affects the precise results of the Lora slider during the inference.

Would it be possible for you to take into account the possibility of integrating the Complel library within your syntax?

It will help, for example, to do prompts like: "(sunny day:1.3), (sepia photo:0.3)" vs "(sunny day:1.3), (modern photo:0.3)" Almost identical images on both positive and negative ends will help to do even more precise Lora sliders.

Anyway, thank you for your work and really easy-to-use colab. Amazing work!

jaretburkett commented 10 months ago

It should be relatively easy to add. I just need to test how it will affect everything with some of the other features as they all use the same encoding functions. Probably not an issue, but ill look into it.

DenisSergeevitch commented 10 months ago

Amazing to hear, thank you!