Skip to content

Commit

Permalink
🎨 Move artifact path to use os path join
Browse files Browse the repository at this point in the history
Signed-off-by: gkumbhat <[email protected]>

Signed-off-by: gkumbhat <[email protected]>
  • Loading branch information
gkumbhat committed Aug 7, 2023
1 parent 4fed554 commit 6907c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/run_fine_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ def export_model_preds(preds_file, predictions, validation_stream):
# HACK: export args.output_dir as MODEL_NAME for TGIS
# container to pick up automatically
os.environ["MODEL_DIR"] = os.path.dirname(args.output_dir)
os.environ[
"MODEL_NAME"
] = f"/models/{os.path.basename(args.output_dir)}/artifacts"
os.environ["MODEL_NAME"] = os.path.join(
"models", os.path.basename(args.output_dir), "artifacts"
)

loaded_model = load_model(is_distributed=True, model_path=args.output_dir)

Expand Down

0 comments on commit 6907c9d

Please sign in to comment.