ThereforeGames / txt2mask

Automatically create masks for Stable Diffusion inpainting using natural language.
517 stars 40 forks source link

Way to change maximum input tokens? #8

Closed Delcos closed 2 years ago

Delcos commented 2 years ago

Is there a config to change the max accepted prompts? Thanks.

ThereforeGames commented 2 years ago

Hi Delcos,

I'm not sure if this is exactly what you were asking, but I just pushed an update that lets you specify multiple masking prompts with | as a delimiter.

For example, if you enter a hand|a face|a flower each of these three items will be processed by clipseg independently, and the final mask will be assembled by stacking the submasks on top of each other.