Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mmv_im2im/bin/run_im2im.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

# import torch


from mmv_im2im import ProjectTester, ProjectTrainer
from mmv_im2im.map_extractor import MapExtractor
from mmv_im2im.configs.config_base import (
ProgramConfig,
parse_adaptor,
Expand All @@ -32,6 +34,7 @@
###############################################################################
TRAIN_MODE = "train"
INFER_MODE = "inference"
MAP_MODE = "uncertainty_map"

###############################################################################

Expand Down Expand Up @@ -70,6 +73,9 @@ def main():
elif cfg.mode.lower() == INFER_MODE:
exe = ProjectTester(cfg)
exe.run_inference()
elif cfg.mode.lower() == MAP_MODE:
exe = MapExtractor(cfg)
exe.run_inference()
else:
log.error(f"Mode {cfg.mode} is not supported yet")
sys.exit(1)
Expand Down
Loading