config.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: class_label
  12. image_size: 64
  13. channels: 3
  14. cond_stage_trainable: false
  15. concat_mode: false
  16. monitor: val/loss
  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: 224
  24. attention_resolutions:
  25. - 8
  26. - 4
  27. - 2
  28. num_res_blocks: 2
  29. channel_mult:
  30. - 1
  31. - 2
  32. - 3
  33. - 4
  34. num_head_channels: 32
  35. first_stage_config:
  36. target: ldm.models.autoencoder.VQModelInterface
  37. params:
  38. embed_dim: 3
  39. n_embed: 8192
  40. ddconfig:
  41. double_z: false
  42. z_channels: 3
  43. resolution: 256
  44. in_channels: 3
  45. out_ch: 3
  46. ch: 128
  47. ch_mult:
  48. - 1
  49. - 2
  50. - 4
  51. num_res_blocks: 2
  52. attn_resolutions: []
  53. dropout: 0.0
  54. lossconfig:
  55. target: torch.nn.Identity
  56. cond_stage_config: __is_unconditional__
  57. data:
  58. target: main.DataModuleFromConfig
  59. params:
  60. batch_size: 42
  61. num_workers: 5
  62. wrap: false
  63. train:
  64. target: ldm.data.faceshq.FFHQTrain
  65. params:
  66. size: 256
  67. validation:
  68. target: ldm.data.faceshq.FFHQValidation
  69. params:
  70. size: 256