Give me the best settings to train a Dreambooth model for Stable Diffusion using an RTX…
- User
Give me the best settings to train a Dreambooth model for Stable Diffusion using an RTX 3060 with 12gb of VRAM.
- Assistant
The best settings to train a Dreambooth model for Stable Diffusion using an RTX 3060 with 12GB of VRAM will depend on the specific dataset you are using, but here are some general recommendations:
- Use the
8bit AdamWoptimizer. This will help to reduce the memory usage of the training process. - Use
fp16mixed precision. This will further reduce the memory usage and speed up the training process. - Set the
memory_attentiontoxformers. This will also help to reduce the memory usage. - Set the
training_steps_per_imageto 150. This will give you a good balance between training quality and training time. - You can also try using the
move_vae_and_clip_to_ramsetting. This will move the VAE and CLIP models to RAM, which can help to reduce the memory usage.
Here are some additional tips:
- Use a high-quality dataset of images. The better the quality of the images, the better the results of the training will be.
- Use the
- User
Can you give me a rough estimate of how long this will take for a particular dataset size?
- Assistant
The exact training time will depend on a number of factors, including the size of the dataset, the quality of the images, and the settings you use. However, as a general rule of thumb, you can expect to train a Dreambooth model for Stable Diffusion on an RTX 3060 with 12GB of VRAM for about 1 day per 100,000 images.
For example, if you are using a dataset of 1 million images, you can expect the training to take about 10 days. If you are using a dataset of 10 million images, you can expect the training to take about 100 days.
Of course, these are just rough estimates. The actual training time may be longer or shorter, depending on the factors mentioned above.
Here are some additional things to keep in mind:
- The training time will be longer if you use the 8bit AdamW optimizer or fp16 mixed precision.
- The training time will be shorter if you use a smaller dataset or lower-quality images.
- You can speed up the training by using a more powerful GPU.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →