Replies: 1 comment 1 reply
-
I haven't tested but to count number of trainable parameters for which gradients are activated, we can do something like: num_trainable = sum([param.numel() for param in model.parameters() if param.requires_grad]) You can add this after the weights of vae, text_encoder and unet are frozen (see this). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is just a simple question. (I am new to here 🥲)
I am using
train_dreambooth_lora.py
, how can I count the number of activated parameters?Beta Was this translation helpful? Give feedback.
All reactions