class_docstr: PL Lightning Module for the CFLOW algorithm.
  
  Args:
      hparams (DictConfig | ListConfig): Model params
class_docstr_tok: ["PL","Lightning","Module","for","the","CFLOW","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[EarlyStopping]:
      """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 einops
  import torch
  import torch.nn.functional
  from omegaconf import DictConfig, ListConfig
  from pytorch_lightning.callbacks import EarlyStopping
  from pytorch_lightning.utilities.types import STEP_OUTPUT
  from torch import Tensor, optim
  from torch.optim import Optimizer
  from anomalib.models.cflow.torch_model import CflowModel
  from anomalib.models.cflow.utils import get_logp, positional_encoding_2d
  from anomalib.models.components import AnomalyModule
label_desc: Use image node_id 2 for calling the CflowLightning obj's underlying member method code with example usage: obj.configure_callbacks() and returns: list