BlueSourceJY commited on
Commit
44846cc
·
verified ·
1 Parent(s): 50084db

Add XL alternating 0/90 rotation training configs

Browse files
experiments/xl_256_rot0_90/configs/lightningdit_xl_vavae_f16d32_rot.yaml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # we recommend to read config_details.yaml first.
2
+
3
+
4
+ ckpt_path: ./output/xl_256_rot180/checkpoints/0080000.pt # <---- download our pre-trained lightningdit or your own checkpoint
5
+ # ckpt_path: null
6
+ data:
7
+ data_path: './cache/vavae_latents/vavae_f16d32/imagenet_train_256' # <---- path to your data. it is generated by extract_features.py.
8
+ # if you just want to inference, download our latent_status.safetensors and give its folder path here is ok.
9
+ # the path should be like this:
10
+ # imagenet_train_256/
11
+ # ├── latents_rank00_shard000.safetensors (not required for inference)
12
+ # ├── latents_rank00_shard001.safetensors (not required for inference)
13
+ # ├── ...
14
+ # └── latents_stats.pt
15
+ fid_reference_file: './ckpts/discon_official/VIRTUAL_imagenet256_labeled.npz' # <---- path to your fid_reference_file.npz. download it from ADM
16
+
17
+ # recommend to use default settings
18
+ image_size: 256
19
+ num_classes: 1000
20
+ num_workers: 8
21
+ latent_norm: true
22
+ latent_multiplier: 1.0
23
+
24
+ # recommend to use default settings (we wil release codes with SD-VAE later)
25
+ vae:
26
+ model_name: 'vavae_f16d32'
27
+ downsample_ratio: 16
28
+
29
+ # recommend to use default settings
30
+ model:
31
+ model_type: LightningDiT-XL/1
32
+ use_qknorm: false
33
+ use_swiglu: true
34
+ use_rope: true
35
+ use_rmsnorm: true
36
+ wo_shift: false
37
+ in_chans: 32
38
+ degree_list: [
39
+ 0, 90, 0, 90, 0, 90, 0,
40
+ 90, 0, 90, 0, 90, 0, 90,
41
+ 0, 90, 0, 90, 0, 90, 0,
42
+ 90, 0, 90, 0, 90, 0, 90
43
+ ]
44
+
45
+ # recommend to use default settings
46
+ train:
47
+ max_steps: 80000
48
+ global_batch_size: 1024
49
+ global_seed: 0
50
+ output_dir: 'output'
51
+ exp_name: 'xl_256_rot0_90' # <---- experiment name, set as you like
52
+ ckpt: null
53
+ log_every: 100
54
+ ckpt_every: 40000
55
+ optimizer:
56
+ lr: 0.0002
57
+ beta2: 0.95
58
+ max_grad_norm: 0.6
59
+
60
+ # recommend to use default settings
61
+ transport:
62
+ path_type: Linear
63
+ prediction: velocity
64
+ loss_weight: null
65
+ sample_eps: null
66
+ train_eps: null
67
+ use_cosine_loss: true
68
+ use_lognorm: true
69
+
70
+ # recommend to use default settings
71
+ sample:
72
+ mode: ODE
73
+ sampling_method: euler
74
+ atol: 0.000001
75
+ rtol: 0.001
76
+ reverse: false
77
+ likelihood: false
78
+ num_sampling_steps: 250
79
+ cfg_scale: 10.0 # <---- cfg scale, for 800 epoch performance with FID=1.35 cfg_scale=6.7
80
+ # for 64 epoch performance with FID=2.11 cfg_scale=10.0
81
+ # you may find we use a large cfg_scale, this is because of 2 reasons:
82
+ # we find a high-dimensional latent space requires a large cfg_scale to get good performance than f8d4 SD-VAE
83
+ # we enable cfg interval, which reduces the negative effects of large cfg on high-noise parts. This means larger cfg can be utilized
84
+
85
+ # recommend to use default settings
86
+ per_proc_batch_size: 64
87
+ fid_num: 50000
88
+ cfg_interval_start: 0.11
89
+ timestep_shift: 0.3
90
+
91
+
92
+ # image_size=256:
93
+ # 80000steps, fid=2.1338
94
+ # Average sampling time per image: 1.751 seconds
95
+ # Average VAE decode time per image: 0.007 seconds
96
+ # Average total time per image: 1.783 seconds
97
+ # Total sampling throughput: 0.56 images/second
experiments/xl_256_rot0_90/configs/runtime_config.yaml ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ckpt_path: ./output/xl_256_rot180/checkpoints/0080000.pt
2
+ data:
3
+ data_path: ./cache/vavae_latents/vavae_f16d32/imagenet_train_256
4
+ fid_reference_file: ./ckpts/discon_official/VIRTUAL_imagenet256_labeled.npz
5
+ image_size: 256
6
+ num_classes: 1000
7
+ num_workers: 8
8
+ latent_norm: true
9
+ latent_multiplier: 1.0
10
+ vae:
11
+ model_name: vavae_f16d32
12
+ downsample_ratio: 16
13
+ model:
14
+ model_type: LightningDiT-XL/1
15
+ use_qknorm: false
16
+ use_swiglu: true
17
+ use_rope: true
18
+ use_rmsnorm: true
19
+ wo_shift: false
20
+ in_chans: 32
21
+ degree_list:
22
+ - 0
23
+ - 90
24
+ - 0
25
+ - 90
26
+ - 0
27
+ - 90
28
+ - 0
29
+ - 90
30
+ - 0
31
+ - 90
32
+ - 0
33
+ - 90
34
+ - 0
35
+ - 90
36
+ - 0
37
+ - 90
38
+ - 0
39
+ - 90
40
+ - 0
41
+ - 90
42
+ - 0
43
+ - 90
44
+ - 0
45
+ - 90
46
+ - 0
47
+ - 90
48
+ - 0
49
+ - 90
50
+ train:
51
+ max_steps: 80000
52
+ global_batch_size: 1024
53
+ global_seed: 0
54
+ output_dir: output
55
+ exp_name: xl_256_rot0_90
56
+ ckpt: null
57
+ log_every: 100
58
+ ckpt_every: 40000
59
+ resume: true
60
+ optimizer:
61
+ lr: 0.0002
62
+ beta2: 0.95
63
+ max_grad_norm: 0.6
64
+ transport:
65
+ path_type: Linear
66
+ prediction: velocity
67
+ loss_weight: null
68
+ sample_eps: null
69
+ train_eps: null
70
+ use_cosine_loss: true
71
+ use_lognorm: true
72
+ sample:
73
+ mode: ODE
74
+ sampling_method: euler
75
+ atol: 1.0e-06
76
+ rtol: 0.001
77
+ reverse: false
78
+ likelihood: false
79
+ num_sampling_steps: 250
80
+ cfg_scale: 10.0
81
+ per_proc_batch_size: 64
82
+ fid_num: 50000
83
+ cfg_interval_start: 0.11
84
+ timestep_shift: 0.3