From ec766fc3f114dd4faaa3add500776a7bae957ba5 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 29 May 2018 11:35:32 +0000
Subject: [PATCH] Ignore empty extra lines in train.txt

---
 scripts/gen_tactic.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scripts/gen_tactic.sh b/scripts/gen_tactic.sh
index add131c..ffa30d2 100755
--- a/scripts/gen_tactic.sh
+++ b/scripts/gen_tactic.sh
@@ -1,2 +1,5 @@
 #!/bin/bash
-./darknet rnn generatetactic cfg/gru.cfg peek.weights < $1 2>/dev/null
+# Usage:
+# wget http://pjreddie.com/media/files/peek.weights
+# scripts/gen_tactic.sh < data/goal.txt
+./darknet rnn generatetactic cfg/gru.cfg peek.weights 2>/dev/null

--
Gitblit v1.10.0