config.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.0205
  7. log_every_t: 100
  8. timesteps: 1000
  9. loss_type: l1
  10. first_stage_key: image
  11. cond_stage_key: segmentation
  12. image_size: 128
  13. channels: 3
  14. concat_mode: true
  15. cond_stage_trainable: true
  16. unet_config:
  17. target: ldm.modules.diffusionmodules.openaimodel.UNetModel
  18. params:
  19. image_size: 128
  20. in_channels: 6
  21. out_channels: 3
  22. model_channels: 128
  23. attention_resolutions:
  24. - 32
  25. - 16
  26. - 8
  27. num_res_blocks: 2
  28. channel_mult:
  29. - 1
  30. - 4
  31. - 8
  32. num_heads: 8
  33. first_stage_config:
  34. target: ldm.models.autoencoder.VQModelInterface
  35. params:
  36. embed_dim: 3
  37. n_embed: 8192
  38. monitor: val/rec_loss
  39. ddconfig:
  40. double_z: false
  41. z_channels: 3
  42. resolution: 256
  43. in_channels: 3
  44. out_ch: 3
  45. ch: 128
  46. ch_mult:
  47. - 1
  48. - 2
  49. - 4
  50. num_res_blocks: 2
  51. attn_resolutions: []
  52. dropout: 0.0
  53. lossconfig:
  54. target: torch.nn.Identity
  55. cond_stage_config:
  56. target: ldm.modules.encoders.modules.SpatialRescaler
  57. params:
  58. n_stages: 2
  59. in_channels: 182
  60. out_channels: 3
  61. data:
  62. target: main.DataModuleFromConfig
  63. params:
  64. batch_size: 8
  65. wrap: false
  66. num_workers: 10
  67. train:
  68. target: ldm.data.landscapes.RFWTrain
  69. params:
  70. size: 768
  71. crop_size: 512
  72. segmentation_to_float32: true
  73. validation:
  74. target: ldm.data.landscapes.RFWValidation
  75. params:
  76. size: 768
  77. crop_size: 512
  78. segmentation_to_float32: true