config.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. model:
  2. base_learning_rate: 1.0e-06
  3. target: ldm.models.diffusion.ddpm.LatentDiffusion
  4. params:
  5. linear_start: 0.0015
  6. linear_end: 0.0195
  7. num_timesteps_cond: 1
  8. log_every_t: 200
  9. timesteps: 1000
  10. first_stage_key: image
  11. cond_stage_key: class_label
  12. image_size: 32
  13. channels: 4
  14. cond_stage_trainable: true
  15. conditioning_key: crossattn
  16. monitor: val/loss_simple_ema
  17. unet_config:
  18. target: ldm.modules.diffusionmodules.openaimodel.UNetModel
  19. params:
  20. image_size: 32
  21. in_channels: 4
  22. out_channels: 4
  23. model_channels: 256
  24. attention_resolutions:
  25. - 4
  26. - 2
  27. - 1
  28. num_res_blocks: 2
  29. channel_mult:
  30. - 1
  31. - 2
  32. - 4
  33. num_head_channels: 32
  34. use_spatial_transformer: true
  35. transformer_depth: 1
  36. context_dim: 512
  37. first_stage_config:
  38. target: ldm.models.autoencoder.VQModelInterface
  39. params:
  40. embed_dim: 4
  41. n_embed: 16384
  42. ddconfig:
  43. double_z: false
  44. z_channels: 4
  45. resolution: 256
  46. in_channels: 3
  47. out_ch: 3
  48. ch: 128
  49. ch_mult:
  50. - 1
  51. - 2
  52. - 2
  53. - 4
  54. num_res_blocks: 2
  55. attn_resolutions:
  56. - 32
  57. dropout: 0.0
  58. lossconfig:
  59. target: torch.nn.Identity
  60. cond_stage_config:
  61. target: ldm.modules.encoders.modules.ClassEmbedder
  62. params:
  63. embed_dim: 512
  64. key: class_label
  65. data:
  66. target: main.DataModuleFromConfig
  67. params:
  68. batch_size: 64
  69. num_workers: 12
  70. wrap: false
  71. train:
  72. target: ldm.data.imagenet.ImageNetTrain
  73. params:
  74. config:
  75. size: 256
  76. validation:
  77. target: ldm.data.imagenet.ImageNetValidation
  78. params:
  79. config:
  80. size: 256