File size: 4,462 Bytes
4b1f882
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: test-run

trainer:
  model_path: "nai_diffusers"
  # model_url: ""
  # init_batch_size: 12
  batch_size: 6
  resolution: 512
  center_crop: false
  gradient_checkpointing: true
  clip_skip: 2
  seed: 1138
  use_ema: false
  use_hivemind: false
  use_xformers: true
  lr_scale: sqrt
  train_text_encoder: false
  attention_slicing: false
  vae_slicing: true

  offset_noise: true
  offset_noise_val: 0.06
  min_snr: true
  min_snr_val: 3
  
checkpoint:
  monitor: 'epoch'
  dirpath: checkpoint_bench
  filename: 'sample-nd-epoch{epoch:02d}'
  auto_insert_metric_name: false
  every_n_epochs: 1
  save_top_k: -1
  mode: 'max'
  save_last: False

lightning:
  accelerator: gpu
  devices: -1
  auto_select_gpus: true
  # limit_train_batches: 100
  max_epochs: 20
  precision: 16
  log_every_n_steps: 1
  accumulate_grad_batches: 1
  gradient_clip_val: 0
  auto_scale_batch_size: false
  auto_lr_find: false

arb:
  enabled: true
  debug: false
  base_res: [512, 512]
  max_size: [768, 512]
  divisible: 64
  max_ar_error: 4
  min_dim: 256
  dim_limit: 1024

dataset:
  img_path: 
    - "/home/ec2-user/SageMaker/minibench/images"
  center_crop: false
  ucg: 0.07
  debug_arb: false
  num_workers: 6
  process_tags: true
  important_tags: []
  allow_duplicates: false
  augment:
    enabled: true
    debug: false
    dropout: 0.8
    methods:
      adjust_brightness: 0.04
      adjust_contrast: 0.05
      rotate_with_crop: 3

optimizer:
  name: lion_pytorch.lion_pytorch.Lion
  params:
    lr: 1.7e-7
    weight_decay: 1e-2
    # eps: 1e-8

lr_scheduler:
  name: torch.optim.lr_scheduler.CosineAnnealingLR
  warmup: 
    enabled: true
    init_lr: 2e-8
    num_warmup: 50
    strategy: "cos"
  params:
    T_max: 6
    eta_min: 1e-7
    last_epoch: -1

monitor:
  wandb_id: ""
  huggingface_repo: ""
  hf_auth_token: ""
  store_checkpoints: true

sampling:
  enabled: true
  use_wandb: true
  every_n_steps: 112
  every_n_epochs: 1
  save_dir: "samples"
  seed: 1139
  height: 768
  width: 512
  steps: 20
  cfg_scale: 7
  negative_prompts: 
    - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
    - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
    - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
    - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
    - "nsfw, text, error, signature, watermark, username, realistic,3d, multiple people, animals, lowres, cropped, worth quality ,low quality, normal quality, jpeg artifacts, blurry, bad anatomy, bad hands, bad arms, bad feet, bad anatomy, missing fingers, extra digits, fewer digits, long neck, missing legs, huge person, optical_illusion"
  prompts: 
    - "best quality, a girl with a yellow hat and a yellow shirt, sitting, white legwear, uniform, jacket, thighhighs, bare shoulders, high contrast, paint splatter"
    - "best quality, 1girl, solo, loli, cat girl, silver hair ,blue eyes, flat chest, solo, beautiful detailed background, messy hair, long hair"
    - "masterpiece, best quality, 1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"
    - "best quality, 1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"
    - "1girl, a clean painting of a girl with long white hair drinking coffee in a coffee bar"

encoder:
  # Leave blank to load from model
  text: 
  vae: