class_docstr: Fully Convolutional Cross-Scale-Flows for Image-based Defect Detection.
  
  Args:
      hprams (DictConfig | ListConfig): Model params
class_docstr_tok: ["Fully","Convolutional","Cross-Scale-Flows","for","Image-based","Defect","Detection",".","Args",":","hprams","(","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 STEP_OUTPUT
  from torch import Tensor
  from anomalib.models.components import AnomalyModule
  from .loss import CsFlowLoss
  from .torch_model import CsFlowModel
label_desc: Use image node_id 2 for calling the CsflowLightning obj's underlying member method code with example usage: obj.configure_callbacks() and returns: list