class_docstr: Implementation of a fully configurable CLI tool for anomalib.
  
  The advantage of this tool is its flexibility to configure the pipeline
  from both the CLI and a configuration file (.yaml or .json). It is even
  possible to use both the CLI and a configuration file simultaneously.
  For more details, the reader could refer to PyTorch Lightning CLI documentation.
class_docstr_tok: ["Implementation","of","a","fully","configurable","CLI","tool","for","anomalib",".","The","advantage","of","this","tool","is","its","flexibility","to","configure","the","pipeline","from","both","the","CLI","and","a","configuration","file","(",".yaml","or",".json",")",".","It","is","even","possible","to","use","both","the","CLI","and","a","configuration","file","simultaneously",".","For","more","details",",","the","reader","could","refer","to","PyTorch","Lightning","CLI","documentation","."]
docstr: Modify the configuration to properly instantiate classes.
docstr_tok: ["Modify","the","configuration","to","properly","instantiate","classes","."]
code: def before_instantiate_classes(self) -> None:
      """Modify the configuration to properly instantiate classes."""
      self.__set_default_root_dir()
      self.__set_callbacks()
      print("done.")
  
file_path: anomalib/src/anomalib/utils/cli/cli.py
imports: from __future__ import annotations
  import logging
  import os
  import warnings
  from datetime import datetime
  from importlib import import_module
  from pathlib import Path
  from omegaconf.omegaconf import OmegaConf
  from pytorch_lightning.cli import LightningArgumentParser, LightningCLI
  from anomalib.utils.callbacks import CdfNormalizationCallback, ImageVisualizerCallback, LoadModelCallback, MetricsConfigurationCallback, MinMaxNormalizationCallback, ModelCheckpoint, PostProcessingConfigurationCallback, TilerConfigurationCallback, TimerCallback, add_visualizer_callback
  from anomalib.utils.loggers import configure_logger
label_desc: Use image node_id 4 for calling the AnomalibCLI obj's underlying member method code with example usage: obj.before_instantiate_classes() without return types