sd-scripts icon indicating copy to clipboard operation
sd-scripts copied to clipboard

Stable cascade stage b training

Open riolys opened this issue 10 months ago • 9 comments

When will stage b training code be released? Thanks!!

riolys avatar Apr 16 '24 02:04 riolys

Does c work at all?

ashrafbay avatar Apr 16 '24 13:04 ashrafbay

Does c work at all?

It works. The code is good. However, the final decoding latent is produced by stage b. I think fine-tuning both would be better.

riolys avatar Apr 17 '24 02:04 riolys

Does c work at all?

It works. The code is good. However, the final decoding latent is produced by stage b. I think fine-tuning both would be better.

in the official repo, it says A quick clarification, Stable Cascade uses Stage A & B to compress images and Stage C is used for the text-conditional learning. Therefore, it makes sense to train a LoRA or ControlNet only for Stage C. You also don't train a LoRA or ControlNet for the Stable Diffusion VAE right?

tristanwqy avatar Apr 17 '24 03:04 tristanwqy

Does c work at all?

It works. The code is good. However, the final decoding latent is produced by stage b. I think fine-tuning both would be better.

in the official repo, it says A quick clarification, Stable Cascade uses Stage A & B to compress images and Stage C is used for the text-conditional learning. Therefore, it makes sense to train a LoRA or ControlNet only for Stage C. You also don't train a LoRA or ControlNet for the Stable Diffusion VAE right?

That' right. But my training on stage c seems like the model has not learned the distribution of my dataset. I adjusted the learning rates from 1e-5 to 5e-6 but the results are similar. I think there are some issues I will consider: 1.The dataset quality. Although the data is high quality from the Internet and the labels are good, they are not from one unique distribution. I am trying another set. 2.The stage b does not know the data distribution. That way, stage b training is necessary.(stage a is good, I have tested it) I just tried the fine-tuning. I will try LoRA.

riolys avatar Apr 17 '24 03:04 riolys

Can you share the code please. I'm trying to train him using COLAB and KAGL but the errors are endless

ashrafbay avatar Apr 17 '24 17:04 ashrafbay

I haven't completed the stage b training. maybe you can see here https://github.com/2kpr/StableCascade

riolys avatar Apr 18 '24 02:04 riolys

not work in cloab

ashrafbay avatar Apr 18 '24 15:04 ashrafbay

The training script for Stage B is more difficult than for C, and I'd like to prioritize other tasks. So I think it is better to use other repositories if they already work.

kohya-ss avatar Apr 21 '24 09:04 kohya-ss

The training script for Stage B is more difficult than for C, and I'd like to prioritize other tasks. So I think it is better to use other repositories if they already work.

Thanks for reply. I find training stage b is not necessary. Stage C training is enough.

riolys avatar Apr 22 '24 02:04 riolys