Upload 2 files
Browse files- run_inference.sh +9 -0
- run_train.sh +19 -0
run_inference.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
export RUN_NAME="inference"
|
| 3 |
+
|
| 4 |
+
python scripts/lots/inference_lots.py \
|
| 5 |
+
--base_model_path="stabilityai/stable-diffusion-xl-base-1.0" \
|
| 6 |
+
--dataset_root="data/sketchy" \
|
| 7 |
+
--out_dir="outputs/inference/$RUN_NAME" \
|
| 8 |
+
--seed=3407 \
|
| 9 |
+
--ckpt_path="ckpts/lots/lots.bin"
|
run_train.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
export RUN_NAME="train"
|
| 3 |
+
|
| 4 |
+
accelerate launch --mixed_precision "bf16" --num_processes 4 --multi-gpu \
|
| 5 |
+
scripts/lots/train_lots.py \
|
| 6 |
+
--pretrained_model_name_or_path="stabilityai/stable-diffusion-xl-base-1.0" \
|
| 7 |
+
--dataset_root="data/sketchy" \
|
| 8 |
+
--output_dir="outputs/checkpoints/$RUN_NAME" \
|
| 9 |
+
--resolution=512 \
|
| 10 |
+
--learning_rate=1e-5 \
|
| 11 |
+
--num_train_epochs=80 \
|
| 12 |
+
--dataloader_num_workers=8 \
|
| 13 |
+
--save_steps=5000 \
|
| 14 |
+
--train_batch_size=4 \
|
| 15 |
+
--dinov2_model="vits14" \
|
| 16 |
+
--num_cls_tokens=64 \
|
| 17 |
+
--fusion_strategy="deferred" \
|
| 18 |
+
--seed=3407 \
|
| 19 |
+
--gradient_accumulation_steps=16
|