Commit 09fc7d9 1 parent d99c400 commit 09fc7d9 Copy full SHA for 09fc7d9
File tree 1 file changed +2
-1
lines changed
src/super_gradients/training/models
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def prepare_conversion_cfgs(cfg: DictConfig):
102
102
)
103
103
checkpoints_dir = Path (get_checkpoints_dir_path (experiment_name = cfg .experiment_name , ckpt_root_dir = cfg .ckpt_root_dir ))
104
104
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" )
106
106
logger .info (f"Exporting checkpoint: { cfg .checkpoint_path } to ONNX." )
107
107
return cfg , experiment_cfg
108
108
@@ -127,4 +127,5 @@ def convert_from_config(cfg: DictConfig) -> str:
127
127
)
128
128
cfg = parse_args (cfg , models .convert_to_onnx )
129
129
out_path = models .convert_to_onnx (model = model , ** cfg )
130
+ logger .info (f"Successfully exported model at { out_path } " )
130
131
return out_path
You can’t perform that action at this time.
0 commit comments