File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ epochs=1
34
34
height=$HTRLOGHIMODELHEIGHT
35
35
multiply=1
36
36
37
+ replacefinallayer=" "
38
+ # to replace final layer during basemodel finetuning uncomment next line
39
+ # replacefinallayer=" --replace_final_layer "
40
+
37
41
# Best not to go lower than 2 with batchsize
38
42
batch_size=40
39
43
model_name=myfirstmodel
@@ -69,6 +73,7 @@ if [[ $GPU -gt -1 ]]; then
69
73
echo " Using GPU ${GPU} "
70
74
fi
71
75
76
+
72
77
# Starting the training
73
78
echo " Starting Loghi HTR training with model $MODEL "
74
79
docker run $DOCKERGPUPARAMS --rm -u $( id -u ${USER} ) :$( id -g ${USER} ) -m 32000m --shm-size 10240m -ti \
@@ -93,7 +98,7 @@ docker run $DOCKERGPUPARAMS --rm -u $(id -u ${USER}):$(id -g ${USER}) -m 32000m
93
98
--model $MODEL \
94
99
--aug_multiply $multiply \
95
100
--model_name $model_name \
96
- --output $tmpdir /output
101
+ --output $tmpdir /output $replacefinallayer
97
102
98
103
echo " Results can be found at:"
99
104
echo $tmpdir
You can’t perform that action at this time.
0 commit comments