zenaivn / dreambooth-training

  • Public
  • 293 runs
Iterate in playground

Run zenaivn/dreambooth-training with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
train_dreambooth
boolean
True
Whether to train dreambooth or not.
train_lora
boolean
False
Whether to train lora or not.
train_lora_sliders
boolean
False
Whether to train lora sliders or not.
model_replicate_link
string
(Optional) Enter your model replicate link for lora sliders training. In case you don't have your own, here is a test link: https://replicate.delivery/pbxt/mu6jfnIIdQWIMKpBXRX3AkRltbjmwEX7kERNInQptcSM3VIJA/output.zip
breast
boolean
True
(Optional) Choose if you want to train lora slider for breast
butt
boolean
False
(Optional) Choose if you want to train lora slider for butt
weight
boolean
False
(Optional) Choose if you want to train lora slider for weight
class_name
string
Specify the class name (for example: man/woman/style/...).
identifier
string
ohwx
Unique identifier for the model instance.
num_repeats
string
1
Number of times the input images should be repeated.
output_name
string
Name of the model's output file. (for example: output_model)
instance_data
string
A ZIP file containing your training images (JPG, PNG, etc. size not restricted). These images contain your 'subject' that you want the trained model to embed in the output domain for later generating customized scenes beyond the training images. For best results, use images without noise or unrelated objects in the background.
class_data
string
An optional ZIP file containing the training data of class images. This corresponds to `class_prompt` above, also with the purpose of keeping the model generalizable. By default, the pretrained stable-diffusion model will generate N images (determined by the `num_class_images` you set) based on the `class_prompt` provided. But to save time or to have your preferred specific set of `class_data`, you can also provide them in a ZIP file.
using_crop_images
boolean
True
Whether to use crop images or not.
train_batch_size
integer
1
Batch size for training data loader, applied per device.
learning_rate
number
0.000001
Initial learning rate (after the potential warmup period) to use. For training LoRA, use 0.0005.
learning_rate_te
number
0.000001
Initial learning rate te (after the potential warmup period) to use. For training LoRA, use 0.0005
lr_scheduler
string (enum)
cosine

Options:

linear, cosine, cosine_with_restarts, polynomial, constant, constant_with_warmup

The scheduler type to use. For training LoRA, use constant
seed
integer
1337
Your seed for training script.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}