class_docstr: PL Lightning Module for the GANomaly Algorithm.
  
  Args:
      hparams (DictConfig | ListConfig): Model params
class_docstr_tok: ["PL","Lightning","Module","for","the","GANomaly","Algorithm",".","Args",":","hparams","(","DictConfig","|","ListConfig",")",":","Model","params"]
docstr: Configure model-specific callbacks.
  
  Note:
      This method is used for the existing CLI.
      When PL CLI is introduced, configure callback method will be
          deprecated, and callbacks will be configured from either
          config.yaml file or from CLI.
docstr_tok: ["Configure","model-specific","callbacks",".","Note",":","This","method","is","used","for","the","existing","CLI",".","When","PL","CLI","is","introduced",",","configure","callback","method","will","be","deprecated",",","and","callbacks","will","be","configured","from","either","config.yaml","file","or","from","CLI","."]
code: def configure_callbacks(self) -> list[Callback]:
      """Configure model-specific callbacks.
  
      Note:
          This method is used for the existing CLI.
          When PL CLI is introduced, configure callback method will be
              deprecated, and callbacks will be configured from either
              config.yaml file or from CLI.
      """
      early_stopping = EarlyStopping(
          monitor=self.hparams.model.early_stopping.metric,
          patience=self.hparams.model.early_stopping.patience,
          mode=self.hparams.model.early_stopping.mode,
      )
      return [early_stopping]
  
imports: from __future__ import annotations
  import logging
  import torch
  from omegaconf import DictConfig, ListConfig
  from pytorch_lightning.callbacks import Callback, EarlyStopping
  from pytorch_lightning.utilities.types import EPOCH_OUTPUT, STEP_OUTPUT
  from torch import Tensor, optim
  from anomalib.models.components import AnomalyModule
  from anomalib.models.ganomaly.loss import DiscriminatorLoss, GeneratorLoss
  from .torch_model import GanomalyModel
label_desc: Use image node_id 2 for calling the GanomalyLightning obj's underlying member method code with example usage: obj.configure_callbacks() and returns: list