Skip to content

Commit

Permalink
Fix config converter for tiling (#3973)
Browse files Browse the repository at this point in the history
fix config converter for tiling
  • Loading branch information
eugene123tw authored Sep 23, 2024
1 parent 51fcb73 commit 46efe84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/otx/tools/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ def instantiate(
model_parser.add_subclass_arguments(OTXModel, "model", required=False, fail_untyped=False, skip={"label_info"})
model = model_parser.instantiate_classes(Namespace(model=model_config)).get("model")

if hasattr(model, "tile_config"):
model.tile_config = datamodule.tile_config

# Instantiate Engine
config_work_dir = config.pop("work_dir", config["engine"].pop("work_dir", None))
config["engine"]["work_dir"] = work_dir if work_dir is not None else config_work_dir
Expand Down

0 comments on commit 46efe84

Please sign in to comment.