config.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. model:
  2. base_learning_rate: 2.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: caption
  12. image_size: 64
  13. channels: 3
  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: 64
  21. in_channels: 3
  22. out_channels: 3
  23. model_channels: 192
  24. attention_resolutions:
  25. - 8
  26. - 4
  27. - 2
  28. num_res_blocks: 2
  29. channel_mult:
  30. - 1
  31. - 2
  32. - 3
  33. - 5
  34. num_head_channels: 32
  35. use_spatial_transformer: true
  36. transformer_depth: 1
  37. context_dim: 640
  38. first_stage_config:
  39. target: ldm.models.autoencoder.VQModelInterface
  40. params:
  41. embed_dim: 3
  42. n_embed: 8192
  43. ddconfig:
  44. double_z: false
  45. z_channels: 3
  46. resolution: 256
  47. in_channels: 3
  48. out_ch: 3
  49. ch: 128
  50. ch_mult:
  51. - 1
  52. - 2
  53. - 4
  54. num_res_blocks: 2
  55. attn_resolutions: []
  56. dropout: 0.0
  57. lossconfig:
  58. target: torch.nn.Identity
  59. cond_stage_config:
  60. target: ldm.modules.encoders.modules.BERTEmbedder
  61. params:
  62. n_embed: 640
  63. n_layer: 32
  64. data:
  65. target: main.DataModuleFromConfig
  66. params:
  67. batch_size: 28
  68. num_workers: 10
  69. wrap: false
  70. train:
  71. target: ldm.data.previews.pytorch_dataset.PreviewsTrain
  72. params:
  73. size: 256
  74. validation:
  75. target: ldm.data.previews.pytorch_dataset.PreviewsValidation
  76. params:
  77. size: 256