Skip to content

Commit

Permalink
#143 Update jupyter notebook example for v1.3.0 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Only-bottle authored Feb 2, 2024
1 parent ebb03b0 commit 72bea02
Show file tree
Hide file tree
Showing 3 changed files with 3,000 additions and 3,366 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
Loading

0 comments on commit 72bea02

Please sign in to comment.