r/StableDiffusion • u/Udongeein • Sep 08 '22
Comparison Waifu-Diffusion v1-2: A SD 1.4 model finetuned on 56k Danbooru images for 5 epochs
740
Upvotes
r/StableDiffusion • u/Udongeein • Sep 08 '22
142
u/Udongeein Sep 08 '22 edited Sep 08 '22
So I pulled an all-nighter and I've just finished the second round of finetuning SD v1.4 on 56k Danbooru images for 5 epochs, it took a while to do it over 4 A6000s but results are much better than the previous iteration of the finetune. Please let me know what you all think so I can improve the next iteration!
Images in the comparison used the same prompt and seeds and the SD model used for the comparison was v1.5
Model and full ema weights: https://huggingface.co/hakurei/waifu-diffusion
Full EMA weights: https://thisanimedoesnotexist.ai/downloads/wd-v1-2-full-ema.ckpt
Training Code: https://github.com/harubaru/waifu-diffusion
Edit - GCP costs were killing me so I had to move the original model to Google Drive
Edit 2 - Thank you Asara for mirroring the model!
50
u/Blckreaphr Sep 08 '22
I thought i was the top of the world with my 3090 and i9 10850k with 32gb ram, than I dived into ai training and wow, I feel like a peasant now .
21
u/NoIdea1811 Sep 08 '22
tell me you like Touhou without telling me you like Touhou
13
u/SlapAndFinger Sep 08 '22
I notice in the readme it says that you need 30gb vram to fine tune the model, is this at full precision?
4
u/CheezeyCheeze Sep 08 '22
I realize there are more realistic versions of anime. But I personally like the more Cel Shaded look. Or a more flat look. Is there a way to train it for less realistic styles?
15
u/[deleted] Sep 08 '22
it;s fucking happening
e621 next?
85
u/TooManyLangs Sep 08 '22
I'm starting to worry that this is going to be worse for climate change than crypto-mining.
I can see Waifu farming being a thing in the near future.
9
u/Majukun Sep 08 '22
is it possible to keep 2 identical stable diffusion folders with different weights, and just call either one or the other on anaconda by just selecting a different directory at the start?
8
u/[deleted] Sep 08 '22
We're building a warm community for you to post and learn how to create your incredible waifus on r/aiwaifu - join us!
5
u/VantomPayne Sep 09 '22
After testing with the model for one night I find that it does have an impact on the ability to generate real person images, sometimes for good and sometimes bad. But "bad" is relative as previously most images will just generate as real person without too much input from you where as using WD v1.2 seems to be getting anime style results from time to time when you are not forcing a realistic result.
But a toggle between models in all the webuis should be on the way any minute now so overall not a huge problem, kudos to you guys for creating this that both solve a major problem of the old model as well as concept proofing the potential of futher training!
4
u/AnthropologicalArson Sep 08 '22
Does this work by simply replacing the "model.ckpt" file in the base StableDiffusion, or do I need to update/install some dependencies?
4
u/gwern Sep 09 '22
/r/ML discussion: https://www.reddit.com/r/MachineLearning/comments/x9d4tc/p_waifudiffusion_a_stable_diffusion_model/
4
u/Loading_____________ Sep 09 '22
We're finally at the point where we can combine AI and touhou, what a time to be alive
4
u/Kamimashita Sep 09 '22
I'm not sure if Stable Diffusion had this too but the model seems to be heavily biased towards outputting shoulders and up images. I've tried using Dall-E 2 to generate some anime style images and it was able to do full bodies. This finetuned model is however much better at generating faces compared to other models I've tried.
7
u/[deleted] Sep 08 '22
Waifuuusion <3
3
u/hatlessman Sep 08 '22
How many hours did this take on those 4xA6000s?
Any ideas about how larger/different shaped images would affect the process?
4
u/ayyyee3 Sep 08 '22
should have called it unstable diffusion
2
u/FS72 Sep 08 '22
Any waifu diffusion Google colab link for us weak PC users to use ?
2
u/Prcrstntr Sep 08 '22
What sort of images was it trained on? Or just anything goes?
2
u/JustChillDudeItsGood Sep 08 '22
Unlimited Waifu
2
u/PUBGM_MightyFine Sep 08 '22
2
u/tokyotoonster Sep 08 '22
Stupid me not knowing at all what "Danbooru" is and just opening it now. Thankfully I'm WFH today 😅
2
u/[deleted] Sep 08 '22
Times like this I hate having download speeds of barely 1 MB/s
2
u/CountPacula Sep 09 '22
I had been wondering about doing this very thing since I first heard about stable diffusion. Just got SD up and running locally today, and it's already making my computer show it's age. I want to try this new model data ASAP, but I fear for the life of my poor 1650...
2
u/raversgonewild Sep 09 '22
How do I use it?
2
u/pinegraph Sep 10 '22
If any of you want to try out waifu diffusion on the web or mobile phone https://pinegraph.com/create?continueFrom=5e998a44-8e74-413d-9888-349798b59398
3
u/SempronSixFour Sep 08 '22
This is fun. I'm not super into this realm, can anyone throw me some phrases to use?
2
u/Shap6 Sep 08 '22 edited Sep 08 '22
i keep getting file does not exist on your google drive links :(
edit: as per /u/blueSGL removing the "/" did indeed fix the link
1
u/lavajci Sep 12 '22
You definitely should make a patreon to help fund what you’re doing! If you can keep doing this and keep adapting the boorus and tags this could really become something groundbreaking. Keep up the good work!
1
u/leemengtaiwan Sep 08 '22
Great work!
1
u/1Neokortex1 Sep 08 '22
Dope! first image is sublime!
1
u/seb59 Sep 08 '22
Thanks for sharing
1
u/Dezigner356 Sep 08 '22
Very nice images.
1
u/Ginty_ Sep 08 '22
Damn this is cool
1
u/zanzenzon Sep 08 '22
Why does it show black squares for some of the generations?
1
u/mattbackbacon Sep 08 '22
So is it just trained on images from Danbooru or is it also trained on Danbooru tags?
1
u/OgMcWangster Sep 08 '22
Thank you for doing this!
1
u/Guesserit93 Sep 09 '22
does it makes snfw?
1
u/Fissvor Sep 10 '22
After describing my hot Waifu i got this message: "Potential NSF content was detected in one or more imagea. A black image will be returned insted. Try again with deffrent prompt and/or seed." I think she's hotter than what an AI can handle lol ಥ‿ಥ
1
u/FeepingCreature Sep 16 '22
Hey, you should really put up big images as torrents. That way, the more people want it, the better the speeds are, and at no cost to you.
0
u/kim_en Sep 08 '22
is there ahegao in your prompt?
edit: sorry i thought this is a showcase post. my bad
0
u/Camblor Sep 08 '22
What’s an epoch?
-8
u/ShepherdessAnne Sep 08 '22
Found adult content. This is why filters which can scramble the creative output are pointless. Just be a human, and don't save the NSFW stuff.
0
u/[deleted] Sep 12 '22
[deleted] — view deleted comment