Skip to content

Commit

Permalink
fix weights file name check
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Jan 30, 2024
1 parent e2557fa commit b708346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/stream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ build_docker_container "$DOCKER_TAG" "$FP_DOCKER"
WEIGHTS_FILENAME=$(find "$DATASTREAM_RESOURCES" -type f -name "*weights*")
if [ -e "$WEIGHTS_FILENAME" ]; then
echo "Using weights found in resources directory $WEIGHTS_FILENAME"
if [[ "$WEIGHTS_FILENAME" != "*/weights.json" ]]; then
if [[ $(basename $WEIGHTS_FILENAME) != "weights.json" ]]; then
mv "$WEIGHTS_FILENAME" ""$DATASTREAM_RESOURCES"/weights.json"
fi
else
Expand Down

0 comments on commit b708346

Please sign in to comment.