Skip to content

Commit

Permalink
fix model path for model publish for bundle (#1091)
Browse files Browse the repository at this point in the history
Signed-off-by: Sachidanand Alle <[email protected]>

Signed-off-by: Sachidanand Alle <[email protected]>
  • Loading branch information
SachidanandAlle authored Oct 24, 2022
1 parent a37e79e commit 739226b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample-apps/endoscopy/update_cvat_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
BUNDLE_NAME=${BUNDLENAMES[$FUNC_NAME]}
MODEL_PATH="$APP_ROOT/model/$BUNDLE_NAME/models/model.pt"
# Update to bundle nuclio container
MODEL_CONTAINER="/opt/conda/monailabel/sample-apps/endoscopy/model/$BUNDLE_NAME/models/model_new2.pt" # default model path at function container
MODEL_CONTAINER="/opt/conda/monailabel/sample-apps/endoscopy/model/$BUNDLE_NAME/models/model.pt" # default model path at function container
fi

# Check if latest model checkpoint is done and saved.
Expand All @@ -53,4 +53,4 @@ if [ -z "$MODEL_PATH" ] || [ ! -f "$MODEL_PATH" ]; then
else
$(docker cp "$MODEL_PATH" "$FUNC_CONTAINER:$MODEL_CONTAINER")
echo "Fetched and Published latest model: $FUNC_NAME to the nuclio function container."
fi
fi

0 comments on commit 739226b

Please sign in to comment.