From a9b3194a001a027dbeeb75f6a8c878a383afe9fe Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Sun, 3 Mar 2024 23:34:00 +0000 Subject: [PATCH] net_spec: read from unicharset directly (produces prettier log) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e560d6ec..67f5dbff 100644 --- a/Makefile +++ b/Makefile @@ -345,7 +345,7 @@ $(LAST_CHECKPOINT): unicharset lists $(PROTO_MODEL) --debug_interval $(DEBUG_INTERVAL) \ --traineddata $(PROTO_MODEL) \ --learning_rate $(LEARNING_RATE) \ - --net_spec "$(subst c###,c`head -n1 $(OUTPUT_DIR)/unicharset`,$(NET_SPEC))" \ + --net_spec "$(subst c###,c$(firstword $(file <$(OUTPUT_DIR)/unicharset)),$(NET_SPEC))" \ --model_output $(OUTPUT_DIR)/checkpoints/$(MODEL_NAME) \ --train_listfile $(OUTPUT_DIR)/list.train \ --eval_listfile $(OUTPUT_DIR)/list.eval \