Haven’t dug into the code yet, but Stability has been developing upscaling models that operate directly on SD latents. So the upscaler has access to the prompt, and a conceptual understanding of what the image is supposed to be showing. These models are able to add additional detail that isn’t present in the lower quality version.
Good feedback. Is there a particular one you think is misleading?
I’ve thought about adding screens that show two sets of images for each model, one that shows the best the model can do, and one that shows “non cherry picked” examples for random prompts.
Or, alternately, making it easier to build good prompts. Right now whenever you create an image it shows you images in similar styles from lexica.art along with their prompts, which I think helps zero in on a good prompt.
I also offer a (work in progress) Quality Tags feature that can automatically enhance your prompts using terms that are known to improve quality for each model.
This is primarily targeted at people without GPUs who want to use custom models that aren’t available in DreamStudio or other SD apps yet. It’s credit based and all users start with free credits for 100 images, which can be used with any model.
If you’re a local GPU user (AUTO111 etc.) you might still find it useful since you can try out new models before downloading the weights. It also handles Dreambooth trigger phrases for you.
Let me know any other models you’d like to see added!
I personally prefer SD for most things, but DALL-E is much, much better than SD 1.5 at understanding complex or unusual prompts. Using DALL-E to create an initial image and then running it through img2img gives great results.
Glad you like the app! A bunch of new features are going live this week. I’ve had several requests for a delete button and will be adding one soon. Feel free to let me know (here or on discord) if you have other ideas for improvements or run into any issues.
Speaking as a developer for one of these apps, credits are unfortunately the only viable approach - and in actual practice, people seem to prefer them over “X images per month” subscriptions based on my app’s numbers. Credits are more flexible and most people don’t know how many images they’ll want to generate ahead of time.
I think unlimited subscriptions would appeal to everyone, but GPUs are too expensive. If a user actually made full use of an unlimited plan it would cost hundreds or thousands of dollars per month depending on the GPU.
Ad supported is also just not sustainable at these GPU prices - it was actually tried by an app early on and they were forced to shut down after being slammed with hundreds of thousands of generations.
If you're not familiar with negative prompts, they are a way to ask the AI not to include certain things in the image. (Credit is due to AUTOMATIC111 for originally coming up with this feature in his web UI.)
Some simple ones that work well in my experience:
Any image that's almost perfect, except for some weird details, you can regenerate with the same seed but adding those details to the negative prompt
For photorealism, including art terms can help, and vice versa.
'watermark' to avoid watermarks
You can avoid NSFW content with terms like nsfw, nude, sexy, etc.
SD and CLIP actually don’t store the original text-image pairs anywhere in their weights (the checkpoint files). They learn some essential features and characteristics from each picture they’re trained on, and encode those features in a way that is very difficult to analyze or query directly. These models are largely “black boxes”.
Assuming that I’m not too far off, do you happen to know if CLIP responds any differently when it is not able to find an exact text match as opposed to when it does find one? No biggie if you don’t know, I’m just digging my way through to this simply to find how I can tell if it doesn’t find exactly what I’m looking for.
I don’t believe so, no. Pretty sure what you’re asking for is not possible, unless there is a list somewhere of the exact subset of LAION that was used for training (haven’t seen one). Adjusting your prompt to ask for the person at a specific age, or “in XYZ show” where you know their age, might help though.
So, Stable Diffusion itself was trained on (part of) the LAION 5B database, with extra training on the “aesthetic” subset. You can browse these online and get a pretty good idea of what SD does and doesn’t know about. However, it gets more complicated because behind the scenes, SD uses another model called CLIP to encode an internal representation of your prompt, as a kind of map of concepts that should be included in the image.
Unlike SD, CLIP was trained on a vast and fairly comprehensive collection of images scraped from all over the internet. And so CLIP knows a lot of things that SD doesn’t.
The best results come when SD and CLIP both have a good understanding of your prompt. However, if you ask for something that CLIP understands but SD doesn’t, you can get weirdly interesting images that are not correct, but have aspects that vaguely hint at the right idea. For example, if you ask for an anime character that SD doesn’t know, you might get photographs of random Japanese people who have some similar characteristics to the character, but are also very different. Or, pictures of women who are not Aunt Bea, but might be a bit reminiscent of her, if you squint.
CLIP also wasn’t trained to differentiate between real and nonsense inputs. It has one job: convert text and images into a mathematical map of concepts. Every possible input will end up somewhere on its map. So if you type in random gibberish and get a picture of a house, that may mean that CLIP placed your gibberish somewhere nearby to the concept of houses on its map. And SD knows all about houses, and creates a picture of one. Why houses? No reason, except a random side effect of its training.
(This also explains why these dataset search engines will return images for nonsense searches: they use CLIP to find images that are most “like” your query - and CLIP will happily do this for any input.)
Future AIs will likely be better at distinguishing sense from nonsense. In the world of language models, GPT-3 is already capable of scoring its own confidence in an answer, and knowing when it doesn’t know something. Image models are still in the early days, but evolving rapidly!
True - SD has a fairly weak grasp of horse drawn carriages. If you ask for one in txt2img you tend to get a lot of extra wheels and horses with way too many legs.
Even though it did poorly on that, I was impressed by how well the inpainted section fits with the rest of the image in style, composition, lighting, size and proportions. Next time I’ll probably include some side by side comparisons with standard SD inpainting for a better demonstration…
Haven’t dug into the code yet, but Stability has been developing upscaling models that operate directly on SD latents. So the upscaler has access to the prompt, and a conceptual understanding of what the image is supposed to be showing. These models are able to add additional detail that isn’t present in the lower quality version.
Yes, see here:
https://reddit.com/r/StableDiffusion/comments/yposkz/_/ivll19x/?context=1
I don’t have experience with NMKD but there should be an option to load the different models once you download them.
Thank you for the detailed thoughts and ideas, I appreciate it!
That’s very reasonable and not something I want people to feel about anything I build. I’ll update the website to be more clear.
Very cool results!
Here are download links for the others too:
https://huggingface.co/hakurei/waifu-diffusion
https://huggingface.co/nitrosocke/
https://huggingface.co/lambdalabs/
https://huggingface.co/AstraliteHeart/pony-diffusion-v2
https://huggingface.co/PublicPrompts/
https://huggingface.co/naclbit/
https://huggingface.co/doohickey/trinart-waifu-diffusion-50-50
https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion
Thanks! I highly recommend TypeScript, its tooling catches so many bugs that are easy to miss with vanilla JS.
Yes, credits can be used with any of the models, it’s one unified app for all of them.
You can upload images on the Collection page, or click Create Variations on any image to run it through img2img (with any of the available models).
React + TypeScript on the frontend, a mix of Python, TypeScript and SQL on the backend, with image generation running on A100s
Good feedback. Is there a particular one you think is misleading?
I’ve thought about adding screens that show two sets of images for each model, one that shows the best the model can do, and one that shows “non cherry picked” examples for random prompts.
Or, alternately, making it easier to build good prompts. Right now whenever you create an image it shows you images in similar styles from lexica.art along with their prompts, which I think helps zero in on a good prompt.
I also offer a (work in progress) Quality Tags feature that can automatically enhance your prompts using terms that are known to improve quality for each model.
Bulk render across all the models is a pretty cool idea. Will look at what would be involved in implementing that.
Main differences from local are:
Link: https://www.patience.ai
This is primarily targeted at people without GPUs who want to use custom models that aren’t available in DreamStudio or other SD apps yet. It’s credit based and all users start with free credits for 100 images, which can be used with any model.
If you’re a local GPU user (AUTO111 etc.) you might still find it useful since you can try out new models before downloading the weights. It also handles Dreambooth trigger phrases for you.
Let me know any other models you’d like to see added!
(edit: updated with clarifications!)
I personally prefer SD for most things, but DALL-E is much, much better than SD 1.5 at understanding complex or unusual prompts. Using DALL-E to create an initial image and then running it through img2img gives great results.
https://www.patience.ai
Glad you like the app! A bunch of new features are going live this week. I’ve had several requests for a delete button and will be adding one soon. Feel free to let me know (here or on discord) if you have other ideas for improvements or run into any issues.
No, negative prompts are separate and have their own token count.
No, this is a different model from glid-3 and seems to perform better
Speaking as a developer for one of these apps, credits are unfortunately the only viable approach - and in actual practice, people seem to prefer them over “X images per month” subscriptions based on my app’s numbers. Credits are more flexible and most people don’t know how many images they’ll want to generate ahead of time.
I think unlimited subscriptions would appeal to everyone, but GPUs are too expensive. If a user actually made full use of an unlimited plan it would cost hundreds or thousands of dollars per month depending on the GPU.
Ad supported is also just not sustainable at these GPU prices - it was actually tried by an app early on and they were forced to shut down after being slammed with hundreds of thousands of generations.
Should be this week or early next, just finalizing the UI and updating the backend for faster generation times when inpainting.
Link to the app: https://www.patience.ai
If you're not familiar with negative prompts, they are a way to ask the AI not to include certain things in the image. (Credit is due to AUTOMATIC111 for originally coming up with this feature in his web UI.)
Some simple ones that work well in my experience:
SD and CLIP actually don’t store the original text-image pairs anywhere in their weights (the checkpoint files). They learn some essential features and characteristics from each picture they’re trained on, and encode those features in a way that is very difficult to analyze or query directly. These models are largely “black boxes”.
I don’t believe so, no. Pretty sure what you’re asking for is not possible, unless there is a list somewhere of the exact subset of LAION that was used for training (haven’t seen one). Adjusting your prompt to ask for the person at a specific age, or “in XYZ show” where you know their age, might help though.
So, Stable Diffusion itself was trained on (part of) the LAION 5B database, with extra training on the “aesthetic” subset. You can browse these online and get a pretty good idea of what SD does and doesn’t know about. However, it gets more complicated because behind the scenes, SD uses another model called CLIP to encode an internal representation of your prompt, as a kind of map of concepts that should be included in the image.
Unlike SD, CLIP was trained on a vast and fairly comprehensive collection of images scraped from all over the internet. And so CLIP knows a lot of things that SD doesn’t.
The best results come when SD and CLIP both have a good understanding of your prompt. However, if you ask for something that CLIP understands but SD doesn’t, you can get weirdly interesting images that are not correct, but have aspects that vaguely hint at the right idea. For example, if you ask for an anime character that SD doesn’t know, you might get photographs of random Japanese people who have some similar characteristics to the character, but are also very different. Or, pictures of women who are not Aunt Bea, but might be a bit reminiscent of her, if you squint.
CLIP also wasn’t trained to differentiate between real and nonsense inputs. It has one job: convert text and images into a mathematical map of concepts. Every possible input will end up somewhere on its map. So if you type in random gibberish and get a picture of a house, that may mean that CLIP placed your gibberish somewhere nearby to the concept of houses on its map. And SD knows all about houses, and creates a picture of one. Why houses? No reason, except a random side effect of its training.
(This also explains why these dataset search engines will return images for nonsense searches: they use CLIP to find images that are most “like” your query - and CLIP will happily do this for any input.)
Future AIs will likely be better at distinguishing sense from nonsense. In the world of language models, GPT-3 is already capable of scoring its own confidence in an answer, and knowing when it doesn’t know something. Image models are still in the early days, but evolving rapidly!
True - SD has a fairly weak grasp of horse drawn carriages. If you ask for one in txt2img you tend to get a lot of extra wheels and horses with way too many legs.
Even though it did poorly on that, I was impressed by how well the inpainted section fits with the rest of the image in style, composition, lighting, size and proportions. Next time I’ll probably include some side by side comparisons with standard SD inpainting for a better demonstration…
Next week!
Looks great!