def before_instantiate_classes(self) -> None:
        """Modify the configuration to properly instantiate classes and sets up tiler."""
        subcommand = self.config["subcommand"]
        if subcommand in {*self.subcommands(), "train", "predict"}:
            self.config[subcommand] = update_config(self.config[subcommand])
Modify the configuration to properly instantiate classes and sets up tiler.
src/anomalib/cli/cli.py