Skip to content

benkyoujouzu/stable-diffusion-webui-print-processed-prompt-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

The stable diffusion webui will split long prompt into pieces to meet the requirement of the text embedding model. All the pieces are independent and treated equally by the following process.

We don't want out prompt to be split at improper position. For example, a long prompt

..., looking at viewer, 1girl ...

may be split into two parts

..., looking at

viewer, 1girl, ...

which may means

..., looking at some unknown place

there is a viewer that is a girl, ...

The above behaviour may happen silently in the background and ruin our result.

This extension prints the processed result of our prompt so that we can find the problem.

To fix the problem, we can just add some commas so that the prompts stay at the right part.

..., , , looking at viewer, 1girl ...

will be split into

..., , ,

looking at viewer, 1girl, ...

This is what we want.

Another way may be use AND to split prompts, but the behaviour is different.

..., AND looking at viewer, 1girl, ...

will become the sum of

...,

looking at viewer, 1girl, ...

see this for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages