Ubuntu
commited on
Commit
•
4a0ea3d
1
Parent(s):
8737c72
Add script and log
Browse files- script_sd.sh +22 -0
- script_sd.sh.log +0 -0
script_sd.sh
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export MODEL_NAME="runwayml/stable-diffusion-v1-5"
|
2 |
+
export OUTPUT_DIR="~/finetune/lora/pokemon"
|
3 |
+
export HUB_MODEL_ID="stable-diffusion-v1-5-pokemon-lora"
|
4 |
+
export DATASET_NAME="lambdalabs/pokemon-blip-captions"
|
5 |
+
|
6 |
+
accelerate launch --mixed_precision="fp16" train_text_to_image_lora.py \
|
7 |
+
--pretrained_model_name_or_path=$MODEL_NAME \
|
8 |
+
--dataset_name=$DATASET_NAME \
|
9 |
+
--dataloader_num_workers=8 \
|
10 |
+
--resolution=512 --center_crop --random_flip \
|
11 |
+
--train_batch_size=1 \
|
12 |
+
--gradient_accumulation_steps=4 \
|
13 |
+
--max_train_steps=15000 \
|
14 |
+
--learning_rate=1e-04 \
|
15 |
+
--max_grad_norm=1 \
|
16 |
+
--lr_scheduler="cosine" --lr_warmup_steps=0 \
|
17 |
+
--output_dir=${OUTPUT_DIR} \
|
18 |
+
--checkpointing_steps 3000 \
|
19 |
+
--seed=1337 \
|
20 |
+
--push_to_hub \
|
21 |
+
--hub_model_id=${HUB_MODEL_ID} \
|
22 |
+
--validation_prompt="Totoro"
|
script_sd.sh.log
ADDED
The diff for this file is too large to render.
See raw diff
|
|