Skip to content

Commit

Permalink
Sharing models before instantiating classes
Browse files Browse the repository at this point in the history
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
  • Loading branch information
Joao-L-S-Almeida committed Dec 30, 2024
1 parent 30dfdf1 commit 628b060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terratorch/cli_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ def add_arguments_to_parser(self, parser: LightningArgumentParser) -> None:

def instantiate_classes(self) -> None:

super().instantiate_classes()
# get the predict_output_dir. Depending on the value of run, it may be in the subcommand
try:
config = self.config.predict
Expand Down Expand Up @@ -398,6 +397,7 @@ def instantiate_classes(self) -> None:
custom_modules_path = os.getenv("TERRATORCH_CUSTOM_MODULE_PATH", None)

import_custom_modules(custom_modules_path)
super().instantiate_classes()

def build_lightning_cli(
args: ArgsType = None,
Expand Down

0 comments on commit 628b060

Please sign in to comment.