Skip to content

Conversation

@martinobettucci
Copy link

Only need to wrap the model now with PromptGuidanceModelWrapper, and call prepare_prompts. No need to change samplers anymore, for example see changes in txt2img.py

special format inside prompts:
[sentence1:sentence2:step] will swap sentence1 (or sentence) for sentence2 at step [sentence:step] will add sentence at step
[:sentence:step] will remove sentence at step
[sentence] will add sentence at step 0 (only useful for negative prompts) when a sentence starts with - it will be seen as a negative prompt

{scale:step} will switch to defined guidance scale at step, does not work if initial guidance scale was 1.0

Only need to wrap the model now with PromptGuidanceModelWrapper, and call prepare_prompts. No need to change samplers anymore, for example see changes in txt2img.py

special format inside prompts:
[sentence1:sentence2:step]  will swap sentence1 (or sentence) for sentence2 at step
[sentence:step] will add sentence at step
[:sentence:step] will remove sentence at step
[sentence] will add sentence at step 0 (only useful for negative prompts)
when a sentence starts with - it will be seen as a negative prompt

{scale:step} will switch to defined guidance scale at step, does not work if initial guidance scale was 1.0
@martinobettucci martinobettucci merged commit eaf7890 into P2Enjoy:main Oct 26, 2022
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

Successfully merging this pull request may close these issues.

2 participants