What should be the value of "max_train_steps" to use when we already have images in the CLASS_DIR? #7754
Unanswered
sivaramakrishnan-rajaraman
asked this question in
Q&A
Replies: 0 comments
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.
-
I am training the stable diffusion on a custom dataset, having 300 training and 900 class images. These images are already available in the INSTANCE_DIR and CLASS_DIR, respectively. I read from Hugging Face documents that the "num_class_images" refer to the minimal number of class images required if prior_preservation = True. I already have adequate class images in my CLASS_DIR, so I do not want the stable diffusion model to generate any class images for me. I am using a batch size of 2, and with a total of 1200 images (300 training + 900 class), I would have 600 steps/epoch. I want to train the model for 30 epochs. In this case, the total number of training steps would be 600*30 = 18000. I am confused about the fact that it is mentioned in the Hugging Face document that the model will generate class images on its own and add them to the class directory. What should be the value for the num_class_images and max_train-steps that I should use in the training script below, satisfying the aforementioned conditions of data, batch size, and epochs?
Beta Was this translation helpful? Give feedback.
All reactions