cin256-v2.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. model:
  2. base_learning_rate: 0.0001
  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: true
  15. conditioning_key: crossattn
  16. monitor: val/loss
  17. use_ema: False
  18. unet_config:
  19. target: ldm.modules.diffusionmodules.openaimodel.UNetModel
  20. params:
  21. image_size: 64
  22. in_channels: 3
  23. out_channels: 3
  24. model_channels: 192
  25. attention_resolutions:
  26. - 8
  27. - 4
  28. - 2
  29. num_res_blocks: 2
  30. channel_mult:
  31. - 1
  32. - 2
  33. - 3
  34. - 5
  35. num_heads: 1
  36. use_spatial_transformer: true
  37. transformer_depth: 1
  38. context_dim: 512
  39. first_stage_config:
  40. target: ldm.models.autoencoder.VQModelInterface
  41. params:
  42. embed_dim: 3
  43. n_embed: 8192
  44. ddconfig:
  45. double_z: false
  46. z_channels: 3
  47. resolution: 256
  48. in_channels: 3
  49. out_ch: 3
  50. ch: 128
  51. ch_mult:
  52. - 1
  53. - 2
  54. - 4
  55. num_res_blocks: 2
  56. attn_resolutions: []
  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. n_classes: 1001
  64. embed_dim: 512
  65. key: class_label