Skip to content

Commit

Permalink
Update otx/algorithms/segmentation/adapters/mmseg/tasks/trainer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eunwoo Shin <eunwoo.shin@intel.com>
  • Loading branch information
jaegukhyun and eunwoosh authored Mar 24, 2023
1 parent 9085a92 commit de6ec1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def run(self, model_cfg, model_ckpt, data_cfg, **kwargs):
# cfg.dump(osp.join(cfg.work_dir, 'config.py'))
# logger.info(f'Config:\n{cfg.pretty_text}')

validate = cfg.data.get("val", None)
validate = "val" in cfg.data
train_segmentor(
model,
datasets,
Expand Down

0 comments on commit de6ec1c

Please sign in to comment.