Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Fixed error in mk-model script
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej-GBS committed Jun 14, 2020
1 parent 2277739 commit 7495dc0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions mk-model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@
cd $1
echo $(pwd)

NUM=`cut -d -f 1 < model/.coach_checkpoint`
if [ "$1" = "" ]; then
echo "USAGE: $0 <model_path>"
else

mkdir -p output/agent
NUM=`cut -d '_' -f 1 < model/.coach_checkpoint`

cp "model/model_$NUM.pb" output/agent/model.pb
cp model/model_metadata.json output/
mkdir -p output/agent

cd output
tar -czvf ../output.tar.gz *
cp "model/model_$NUM.pb" output/agent/model.pb
cp model/model_metadata.json output/

echo "done"
cd output
tar -czvf ../output.tar.gz *

echo "done"

fi

0 comments on commit 7495dc0

Please sign in to comment.