Views
No views yet
Deopusi/satlas-tci-mini.1python train_dreambooth_inpaint.py \
2 # Init args
3 --pretrained_model_name_or_path <Base model to finetune, default "runwayml/">
4 --instance_prompt <Prompt to use for all images, default "a high-resolution sks satellite image of a landscape, taken from space">
5 --prompt_file <CSV file containing prompts tied to training images, defaults to None, only uses instance prompt>
6 --prompt_key <Name of the prompt column in the prompt file. Only used if a prompt file is given>
7 # LoRA args
8 --use_lora <Optional, whether to use LoRA or finetune SD weights>
9 --lora_r <int>
10 --lora_alpha <int>
11 --lora_dropout <float>
12 --lora_bias <str> <LoRA UNET args>
13 --lora_text_encoder_r <int>
14 --lora_text_encoder_alpha <int>
15 --lora_text_encoder_dropout <float>
16 --lora_text_encoder_bias <str> <LoRA text encoder args>
17 # Saving args
18 --output_dir <Output dir for saved models & checkpoints, default "model">
19 --checkpointing_steps <Number of steps between checkpointing, default 500. To preserve memory, only one checkpoint is allowed.>
20 --checkpoints_total_limit <Number of checkpoints that will be fully saved (/!\ ~3.7GB per ckpt), defaults to 1>
21 --resume_from_checkpoint <Name of checkpoint to resume from, default None (start from scratch). Use 'latest' to default to most recent ckpt.>
22 # Hyperparameters
23 --resolution <Image resolution. Be aware that data is of resolution 512. Default 512>
24 --train_text_encoder <Optional, whether to train text encoder in addition to UNET>
25 --train_batch_size <Batch size for training, default 4>
26 --num_train_epochs <Number of training epochs>
27 --learning_rate <Learning rate>
28 1python train_dreambooth_inpaint.py
2 --use_lora
3 --train_text_encoder
4 --checkpointing_steps 100
5 --num_train_epochs 3prompt_file argument.1python train_dreambooth_inpaint.py
2 --use_lora
3 --train_text_encoder
4 --checkpointing_steps 100
5 --num_train_epochs 3
6 --resume_from_checkpoint checkpoint-lastpython test_dreambooth_inpaint.py--num_test_samples > 1. This will compute average feature loss, as well as average min and max loss (min/max over candidates, then average over samples).1python inpaint_app.py
2 --num_images_per_prompt 10
3 --num_inference_steps 30