Skip to content

Commit

Permalink
update htr-train-pipeline.sh to include replace_final_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
rvankoert committed Apr 7, 2024
1 parent 66472af commit a3df590
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/htr-train-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ epochs=1
height=$HTRLOGHIMODELHEIGHT
multiply=1

replacefinallayer=""
# to replace final layer during basemodel finetuning uncomment next line
#replacefinallayer=" --replace_final_layer "

# Best not to go lower than 2 with batchsize
batch_size=40
model_name=myfirstmodel
Expand Down Expand Up @@ -69,6 +73,7 @@ if [[ $GPU -gt -1 ]]; then
echo "Using GPU ${GPU}"
fi


# Starting the training
echo "Starting Loghi HTR training with model $MODEL"
docker run $DOCKERGPUPARAMS --rm -u $(id -u ${USER}):$(id -g ${USER}) -m 32000m --shm-size 10240m -ti \
Expand All @@ -93,7 +98,7 @@ docker run $DOCKERGPUPARAMS --rm -u $(id -u ${USER}):$(id -g ${USER}) -m 32000m
--model $MODEL \
--aug_multiply $multiply \
--model_name $model_name \
--output $tmpdir/output
--output $tmpdir/output $replacefinallayer

echo "Results can be found at:"
echo $tmpdir
Expand Down

0 comments on commit a3df590

Please sign in to comment.