This repository was archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdvc.yaml
More file actions
64 lines (64 loc) · 1.9 KB
/
dvc.yaml
File metadata and controls
64 lines (64 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
stages:
set_up_diffusers:
cmd: |
git clone --depth 1 --branch v0.14.0 https://github.com/huggingface/diffusers.git diffusers
pip3.10 install -r "diffusers/examples/dreambooth/requirements.txt"
accelerate config default
outs:
- diffusers:
cache: false
scrape_pokemon_images:
cmd: python3 src/scrape_pokemon_images.py --params params.yaml
deps:
- src/scrape_pokemon_images.py
outs:
- data/external/pokemon
download_pokemon_stats:
cmd: kaggle datasets download -d brdata/complete-pokemon-dataset-gen-iiv -f Pokedex_Cleaned.csv -p data/external/
outs:
- data/external/Pokedex_Cleaned.csv
resize_pokemon_images:
cmd: python3 src/resize_pokemon_images.py --params params.yaml
deps:
- src/resize_pokemon_images.py
- data/external/pokemon
- data/external/Pokedex_Cleaned.csv
outs:
- data/processed/pokemon
params:
- base
- data_etl
train_lora:
cmd: >
accelerate launch --mps "diffusers/examples/dreambooth/train_dreambooth_lora.py"
--pretrained_model_name_or_path=${train_lora.base_model}
--instance_data_dir=${data_etl.train_data_path}
--output_dir=${train_lora.lora_path}
--instance_prompt='a pkmnlora pokemon'
--resolution=512
--train_batch_size=1
--gradient_accumulation_steps=1
--checkpointing_steps=500
--learning_rate=${train_lora.learning_rate}
--lr_scheduler='cosine'
--lr_warmup_steps=0
--max_train_steps=${train_lora.max_train_steps}
--seed=${train_lora.seed}
deps:
- diffusers
- data/processed/pokemon
outs:
- models/pkmnlora
params:
- data_etl
- train_lora
generate_text_to_image:
cmd: python3 src/generate_text_to_image.py --params params.yaml
outs:
- outputs
deps:
- src/generate_text_to_image.py
- models/pkmnlora
params:
- train_lora
- generate_text_to_image