Skip to content

Commit 09fc7d9

Browse files
authored
export message after success + suffix replacement fix (#611)
1 parent d99c400 commit 09fc7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/super_gradients/training/models/conversion.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def prepare_conversion_cfgs(cfg: DictConfig):
102102
)
103103
checkpoints_dir = Path(get_checkpoints_dir_path(experiment_name=cfg.experiment_name, ckpt_root_dir=cfg.ckpt_root_dir))
104104
cfg.checkpoint_path = str(checkpoints_dir / cfg.ckpt_name)
105-
cfg.out_path = cfg.out_path or cfg.checkpoint_path.replace(".ckpt", ".onnx")
105+
cfg.out_path = cfg.out_path or cfg.checkpoint_path.replace(".pth", ".onnx")
106106
logger.info(f"Exporting checkpoint: {cfg.checkpoint_path} to ONNX.")
107107
return cfg, experiment_cfg
108108

@@ -127,4 +127,5 @@ def convert_from_config(cfg: DictConfig) -> str:
127127
)
128128
cfg = parse_args(cfg, models.convert_to_onnx)
129129
out_path = models.convert_to_onnx(model=model, **cfg)
130+
logger.info(f"Successfully exported model at {out_path}")
130131
return out_path

0 commit comments

Comments
 (0)