summaryrefslogtreecommitdiff
path: root/training/conf/criterion/vqgan_loss.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'training/conf/criterion/vqgan_loss.yaml')
-rw-r--r--training/conf/criterion/vqgan_loss.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/training/conf/criterion/vqgan_loss.yaml b/training/conf/criterion/vqgan_loss.yaml
new file mode 100644
index 0000000..a1c886e
--- /dev/null
+++ b/training/conf/criterion/vqgan_loss.yaml
@@ -0,0 +1,12 @@
+_target_: text_recognizer.criterions.vqgan_loss.VQGANLoss
+reconstruction_loss:
+ _target_: torch.nn.L1Loss
+ reduction: mean
+discriminator:
+ _target_: text_recognizer.criterions.n_layer_discriminator.NLayerDiscriminator
+ in_channels: 1
+ num_channels: 32
+ num_layers: 3
+vq_loss_weight: 1.0
+discriminator_weight: 1.0
+