-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathteacher_train.sh
More file actions
67 lines (63 loc) · 2.02 KB
/
teacher_train.sh
File metadata and controls
67 lines (63 loc) · 2.02 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
65
66
67
#!/bin/bash
export CUDA_VISIBLE_DEVICES=0
# activate you conda env if not
# conda activate your_env_name
# run the training
## single gpu start
python main.py \
--task diffusion_digital \
--num_gpu 1 \
--data_path ./data/your_datapath \
--output_dir ./logs/exp \
--sample_size 32 \
--in_channels 3 \
--out_channels 3 \
--num_epochs 300 \
--train_batch_size 200 \
--eval_batch_size 64 \
--learning_rate_digital 1e-4 \
--prediction_type epsilon \
--ddpm_num_steps 1000 \
--ddpm_beta_schedule linear \
--mixed_precision no \
--seed 96 \
--save_image_epochs 10 \
--save_model_epochs 50 \
--lr_warmup_steps 100 \
--gradient_accumulation_steps 1 \
--num_classes 0 \
--time_embedding_type_d positional \
--down_block_types DownBlock2D AttnDownBlock2D AttnDownBlock2D AttnDownBlock2D \
--up_block_types AttnUpBlock2D AttnUpBlock2D AttnUpBlock2D UpBlock2D \
--block_out_channels 224 448 672 896 \
--layers_per_block 2 \
--prediction_type_d epsilon
## multi gpu start
# accelerate launch --multi_gpu --num_processes 4 main.py \
# --task diffusion_digital \
# --num_gpu 4 \
# --data_path ./data/your_datapath \
# --output_dir ./logs/exp \
# --sample_size 32 \
# --in_channels 1 \
# --out_channels 1 \
# --num_epochs 300 \
# --train_batch_size 4 \
# --eval_batch_size 4 \
# --learning_rate_digital 1e-4 \
# --prediction_type epsilon \
# --ddpm_num_steps 1000 \
# --ddpm_beta_schedule linear \
# --mixed_precision no \
# --seed 96 \
# --save_image_epochs 10 \
# --save_model_epochs 50 \
# --lr_warmup_steps 100 \
# --gradient_accumulation_steps 1 \
# --num_classes 10 \
# --time_embedding_type_d positional \
# --down_block_types DownBlock2D AttnDownBlock2D AttnDownBlock2D AttnDownBlock2D \
# --up_block_types AttnUpBlock2D AttnUpBlock2D AttnUpBlock2D UpBlock2D \
# --block_out_channels 224 448 672 896 \
# --layers_per_block 2 \
# --prediction_type_d epsilon