Skip to content

Commit

Permalink
Reference internal norm template location
Browse files Browse the repository at this point in the history
  • Loading branch information
Avic3nna committed May 4, 2024
1 parent fade593 commit 320bdaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stamp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def run_cli(args: argparse.Namespace):
)
c = cfg.preprocessing
# Some checks
normalization_template_path = Path(f"{os.environ['STAMP_RESOURCES_DIR']}/normalization_template.jpg")
if c.norm and not Path(normalization_template_path).exists():
raise ConfigurationError(f"Normalization template {normalization_template_path} does not exist, please run `stamp setup` to download it.")
if c.feat_extractor == 'ctp':
Expand Down

0 comments on commit 320bdaa

Please sign in to comment.