---
description: Alternative Title, how to test what my model is good for
---

# How to test your models?

All credit goes to this Reddit post, read it for the full information: [https://www.reddit.com/r/StableDiffusion/comments/12u6c76/can\_we\_identify\_most\_stable\_diffusion\_model/](https://www.reddit.com/r/StableDiffusion/comments/12u6c76/can_we_identify_most_stable_diffusion_model/)

What can we test for?&#x20;

1. Text encoder / Unet problems: over-training/corruption. Over-training means that instead of giving you the image of what you are asking for in the prompt, it gives you something entirely different.&#x20;
2. Latent noise. This is the noise the image is generated from.&#x20;
3. Human body/hands integrity. Do you get weirdly shaped bodies, additional limbs etc. etc.
4. Cropped Heads/bodies. This was a huge problem with older models, where only the torso would get generated.
5. SFW/NSFW bias. Will your model generate NSFW images even without being asked.

The prompts themselves are:

"Photo of Jennifer Lawrence" Jennifer Lawrence is well known by the base Stable diffusion, so if you get different people the model is likely over-training. \
"Photo of woman" "Photo of a naked woman". This will show you both NSFW/SFW bias and Body integrity issue.\
"City streets". This is a great way to check for issues with latent noise. \
"Illustration of a circle". This is another way to check for over-training and latent noise.\
"A person waving at the viewer". A great prompt to check if you get good hands.

All of this will be much easier to understand with samples, so lets start with the old SD1.5 Model as our starting point:&#x20;

<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FOiqp2UtjJkFd3hGukgtR%2FSD15.png?alt=media&#x26;token=d0a9e382-4fc6-4668-9f74-7eb3199147f6" alt=""><figcaption></figcaption></figure>

Yes this chart is from the model we started with back in the day. I had to reduce image size down to 512x512 instead of 768x768 which was the setting for most of the other generations in this guide, due to it not being supported. Lets go through the images prompts from top to bottom.



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FMkYNhV9DJHNvcbgw9HZW%2FSD15Lawrence.png?alt=media&#x26;token=47c0ae44-d5d4-4c4a-a850-a112e76f0139" alt=""><figcaption></figcaption></figure>

Unsurprisingly it did really well with generating images of Jennifer Lawrence. It even did a fairly good job with the body. The older models had huge issues with cropping which is showing up here.



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FlvJspIpMDMUqxaufC3Vt%2FSD15Woman.png?alt=media&#x26;token=bfd7d6f4-8c1c-4e99-882c-ba9b8ff6029f" alt=""><figcaption></figcaption></figure>

No naked women without being prompted, so the Model has no NSFW bias which is good. The bodies look ok to awful, so body integrity is ok at best.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FFxePUqQ8S9BymLt1U9VQ%2FSD15NakedWoman.png?alt=media&#x26;token=b7e29a83-b0f7-4256-9fe1-16ded10be48f" alt=""><figcaption></figcaption></figure>

Naked when prompted for, so the model has no SFW bias either. The bodies here, particular the first one is really awful, so body integrity is awful.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FlYprUvtyMgktvZSsDO22%2FSD15Street.png?alt=media&#x26;token=6b0add65-4f68-4d48-82d6-5edc77d39256" alt=""><figcaption></figcaption></figure>

These street look fine. A single street, not too busy so Latent noise appears to be ok.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2F8tgBJjdMwUWxNOm20rJG%2FSD15Circle.png?alt=media&#x26;token=ac29f0d8-99ab-4295-81f6-3229e69ae673" alt=""><figcaption></figcaption></figure>

3/5 give us a circle, but 2 give us something completely different. Could be a problem with over-training, or with the encoder not understanding what we mean with a circle.



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FHIXn5BrtBBDViidjYmQ6%2FSD15Wave.png?alt=media&#x26;token=c60f714a-a9fe-49a3-b90a-093854513c92" alt=""><figcaption></figcaption></figure>

Waving at the viewer seems to give us AWFUL hands. Also no hands at all in 2 images.

<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2ForLBVRUhTMJrBZOp4JrI%2Fthe_line.png?alt=media&#x26;token=1bf137fe-5b91-486d-bb1b-affd4e3d193c" alt=""><figcaption></figcaption></figure>

Lets compare this to the UMI model. The overview first:

<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2Fsw7z7oAMOTRFxZHVg0qN%2FOlympus.png?alt=media&#x26;token=a29958b2-febf-419b-8629-2fe8906e6bd9" alt=""><figcaption></figcaption></figure>

Already looks a lot better on first glance, so lets go through it from top to bottom.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FtJZFENElfT1uf1JAzmNT%2FOlympusLawrence.png?alt=media&#x26;token=931ffe25-64f8-4601-9211-7bd5771028c2" alt=""><figcaption></figcaption></figure>

We still get Jennifer Lawrence, but not realistic images, but a bit more of an anime style which is the bias this model has. No cropped images so already much better too in that regard. These images also are much better body integrity even at this point.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FDFbZIiqWJgXR3UqoGiYX%2FOlympusWoman.png?alt=media&#x26;token=06e2cd2d-4e01-4600-accc-19f506d60293" alt=""><figcaption></figcaption></figure>

Good body proportion, no NSFW. This model has no NSFW bias and makes great looking bodies.



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2F7LQfcS9UD569Ucgtl424%2FOlympusNakedWoman.png?alt=media&#x26;token=0db85df3-9998-4bea-b2af-edca8ceb2f84" alt=""><figcaption></figcaption></figure>

We ask for NSFW and get NSFW. This model has no SFW bias. Bodies here are great.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FwoUWdYI6bKcY5waLCqCQ%2FOlympusStreet.png?alt=media&#x26;token=554d5fa4-a261-4468-836b-18841b464687" alt=""><figcaption></figcaption></figure>

Streets are kind of noisy, lots of people and houses, so could be a slightly noisier than default SD1.5.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FuQdkO47atsZzJRzcN6kT%2FOlympusCircle.png?alt=media&#x26;token=876d97e6-ef36-4084-a19d-0022c0faef48" alt=""><figcaption></figcaption></figure>

We get circles in all images, so that's nice. However the inside of the circles are a bit noisy in 3 out of 5 of them, so it could indicate some corruption.&#x20;



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FoGJeWlenULvOlyC29Jvr%2FOlympusHands.png?alt=media&#x26;token=d1b6eaf0-15d2-42b6-8b25-1c393d6e9922" alt=""><figcaption></figcaption></figure>

Hands, and even 5 Finger in most of them, yay!



<figure><img src="https://2463013151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2ForLBVRUhTMJrBZOp4JrI%2Fthe_line.png?alt=media&#x26;token=1bf137fe-5b91-486d-bb1b-affd4e3d193c" alt=""><figcaption></figcaption></figure>

Conclusions: The tests are by no means a "THIS MODEL IS BETTER THAN THAT MODEL" but rather a study on what models do well, and what models do bad. If you want to generate a lot of fruit baskets, then I would not do these tests, but rather generate fruit baskets.&#x20;
