-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathimagen_super_resolution_256.yaml
More file actions
62 lines (55 loc) · 1.27 KB
/
imagen_super_resolution_256.yaml
File metadata and controls
62 lines (55 loc) · 1.27 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
_base_: ./imagen_base.yaml
Global:
global_batch_size:
local_batch_size: 1
micro_batch_size: 1
Model:
name: imagen_SR256
text_encoder_name: None # We do not use text conditoin during training.
text_embed_dim:
timesteps: 1000
channels: 3
cond_drop_prob: 0.1
noise_schedules: cosine
pred_objectives: noise
lowres_cond: True
lowres_noise_schedule: linear
lowres_sample_noise_level: 0.2
per_sample_random_aug_noise_level: False
condition_on_text: False
auto_normalize_img: True
p2_loss_weight_gamma: 0.5
dynamic_thresholding: True,
dynamic_thresholding_percentile: 0.95
only_train_unet_number: 1
is_sr: True
use_recompute: True
recompute_granularity:
Data:
Train:
dataset:
name: ImagenDataset
input_path: ./projects/imagen/filelist/laion_400M/train
shuffle: True
image_format: base64
image_size: 256
text_max_len: 128
filter_image_resolution: 256
sr: True
loader:
num_workers: 8
shuffle: True
batch_size: 6
drop_last: True
collate_fn: imagen_collate_fn
Loss:
name: mse_loss
p2_loss_weight_k: 1.0
Distributed:
dp_degree: 128
mp_degree: 1
pp_degree: 1
sharding:
sharding_degree: 1
sharding_stage: 1
sharding_offload: False