Fixed Seed?

#3
by Fuyuhiko - opened

heya! love your toy world spaces! but i think they work under a fixed seed? because for example i generate an image. then i generate again without changing anything and i get the exact same image. is there a way to go around this? thanks ^^

Hey! No, there's no fixed seed, the images are cached in case you get an error that causes them to be generated but not shown (when this happens they appear immediately after clicking Generate again), or click generate by mistake before saving the picture which would lose the pic and make a different one. As soon as the picture's cache is cleaned the same prompts will generate a different picture. Here's two ways to get around this:

1.- Add dots at the end of the prompt. Like. This.. Periods at the end are neutral changes to the prompt that will allow you to generate a different picture with the same prompt. Of course you can use other symbols like commas or punctuation marks like the exclamation mark! Anywhere in your prompt, or  you   can     insert   more  spaces between words,or removing them after commas,etc.If the prompt is long enough you can add numbers at the end like 1 2 3... and it will not affect the prompt if they are after the token limit, just give you as different picture.

2.- Duplicate the space and disable the cache, I've never done it but @BlinkSun mentioned it here: https://huggingface.co/spaces/Yntec/ToyWorld/discussions/8 :

I even found out that during an API call, we can not only provide the "inputs" but also pass an "options" object with 2 boolean properties: use_cache and wait_for_model. The use_cache defaults to true but if set to false, it generates a new image with each call

Good luck, and thanks for using the space!

Sign up or log in to comment