News for hackers. Stuff that matters.
Re:Stable Diffusion 2.0 Release by Jack000 on Wednesday November 23, 2022 @10:53PM (#33727638)
Depends on the dataset. You can probably get decent results by restricting the modality of the images (faces, cars, bedrooms etc)

I trained from scratch with 4x3090 and while it’s not as good as SD it’s surprisingly better with hands.

Re:Stable Diffusion 2.0 Release by svnt on Wednesday November 23, 2022 @11:16PM (#33727731)
How long did the training take on 4 3090s?
Re:Stable Diffusion 2.0 Release by Jack000 on Wednesday November 23, 2022 @11:27PM (#33727792)
About 1 month actual training time. It’s a smaller (650m) model and probably still undertrained. Glid3 on GitHub.
Re:Stable Diffusion 2.0 Release by hackater on Wednesday November 23, 2022 @11:47PM (#33727896)
Can you go into a bit more detail? What architecture did you use? Is the month training time really just training with mini batches with a constant learning rate? Or are these many failed attempts until you trained a successful model for a few days in the end?

I particularly interested in the image generation part (the DDPM/SGM)

Re:Stable Diffusion 2.0 Release by Jack000 on Thursday November 24, 2022 @12:02AM (#33727949)
Yeah I did have a few false starts. Total time is more like 3 months vs 1 month for the final model. For small scale training I found it’s necessary to use a long lr warmup period, followed by constant lr.

There’s code on my GitHub (glid3)

edit: The architecture is identical to SD except I trained on 256px images with cosine noise schedule instead of linear. Using the cosine schedule makes the unet converge faster but can overfit if overtrained.

Re:Stable Diffusion 2.0 Release by rrobukef on Thursday November 24, 2022 @04:38AM (#33729390)
I keep wondering if using not only statistical noise but also deformations would help with the generation of deformable things - say human hands.
Re:Stable Diffusion 2.0 Release by dmingod666 on Thursday November 24, 2022 @06:39AM (#33730199)
F222 does a little more coherent anatomy..not surprising given its background
Re:Stable Diffusion 2.0 Release by jbellis on Thursday November 24, 2022 @09:07AM (#33731390)
What kind of form factor do you use for 4x3090? Don't people usually use the datacenter product line when they're trying to get more than one into a box?
Re:Stable Diffusion 2.0 Release by Jack000 on Thursday November 24, 2022 @01:21PM (#33734575)
The datacenter cards are 3-4x the price for the same speed + double the vram. Gaming cards are a lot more cost effective if your model fits in under 24gb.

I use an open air rig like the ones used for crypto mining. 4x3090 would normally trip the breakers without mods but if you under volt the cards the power draw is just under the limit for a home AC outlet.