class_docstr: Generator loss for the GANomaly model.
  
  Args:
      wadv (int, optional): Weight for adversarial loss. Defaults to 1.
      wcon (int, optional): Image regeneration weight. Defaults to 50.
      wenc (int, optional): Latent vector encoder weight. Defaults to 1.
code: def __init__(self, wadv=1, wcon=50, wenc=1) -> None:
      super().__init__()
  
      self.loss_enc = nn.SmoothL1Loss()
      self.loss_adv = nn.MSELoss()
      self.loss_con = nn.L1Loss()
  
      self.wadv = wadv
      self.wcon = wcon
      self.wenc = wenc
  
file_path: anomalib/src/anomalib/models/ganomaly/loss.py
imports: from __future__ import annotations
  import torch
  from torch import Tensor, nn
label_desc: Use image node_id 1 to create a new GeneratorLoss object from inherited base classes: nn with example: obj = GeneratorLoss(wadv, wcon, wenc)