v 2.0
Browse files
configs/test/textdesign_sd_2.yaml
CHANGED
@@ -104,4 +104,23 @@ model:
|
|
104 |
attn_resolutions: []
|
105 |
dropout: 0.0
|
106 |
lossconfig:
|
107 |
-
target: torch.nn.Identity
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
attn_resolutions: []
|
105 |
dropout: 0.0
|
106 |
lossconfig:
|
107 |
+
target: torch.nn.Identity
|
108 |
+
|
109 |
+
loss_fn_config:
|
110 |
+
target: sgm.modules.diffusionmodules.loss.FullLoss # StandardDiffusionLoss
|
111 |
+
params:
|
112 |
+
seq_len: 12
|
113 |
+
kernel_size: 3
|
114 |
+
gaussian_sigma: 1.0
|
115 |
+
min_attn_size: 16
|
116 |
+
lambda_local_loss: 0.01
|
117 |
+
lambda_ocr_loss: 0.001
|
118 |
+
ocr_enabled: False
|
119 |
+
|
120 |
+
sigma_sampler_config:
|
121 |
+
target: sgm.modules.diffusionmodules.sigma_sampling.DiscreteSampling
|
122 |
+
params:
|
123 |
+
num_idx: 1000
|
124 |
+
|
125 |
+
discretization_config:
|
126 |
+
target: sgm.modules.diffusionmodules.discretizer.LegacyDDPMDiscretization
|