Skip to content

Commit

Permalink
Fix file path as_posix
Browse files Browse the repository at this point in the history
  • Loading branch information
Only-bottle committed Feb 2, 2024
1 parent aafb7c5 commit 0e550cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netspresso/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ def train(self, gpus: str, project_name: str) -> Dict:
hparams_path = destination_folder / "hparams.yaml"

if best_fx_paths:
metadata.update_best_fx_model_path(best_fx_model_path=best_fx_paths[0])
metadata.update_best_fx_model_path(best_fx_model_path=best_fx_paths[0].as_posix())
if best_onnx_paths:
metadata.update_best_onnx_model_path(best_onnx_model_path=best_onnx_paths[0])
metadata.update_best_onnx_model_path(best_onnx_model_path=best_onnx_paths[0].as_posix())
metadata.update_model_info(
task=self.task,
model=self.model.name,
Expand All @@ -418,8 +418,8 @@ def train(self, gpus: str, project_name: str) -> Dict:
)
metadata.update_training_info(epoch=self.training.epochs, batch_size=self.training.batch_size)
metadata.update_training_result(training_summary=training_summary)
metadata.update_logging_dir(logging_dir=destination_folder)
metadata.update_hparams(hparams=hparams_path)
metadata.update_logging_dir(logging_dir=destination_folder.as_posix())
metadata.update_hparams(hparams=hparams_path.as_posix())
metadata.update_status(status=status)
MetadataHandler.save_json(data=metadata.asdict(), folder_path=destination_folder)

Expand Down

0 comments on commit 0e550cc

Please sign in to comment.