Skip to content

Commit

Permalink
automatically use the latest snapshot to test
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqi305 committed Jul 29, 2017
1 parent 2cf1bc4 commit c80df8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh
#latest=snapshot/mobilenet_iter_73000.caffemodel
latest=$(ls -t snapshot/*.caffemodel | head -n 1)
if test -z $latest; then
exit 1
fi
../../build/tools/caffe train -solver="solver_test.prototxt" \
--weights=snapshot/mobilenet_iter_73000.caffemodel \
--weights=$latest \
-gpu 0

0 comments on commit c80df8b

Please sign in to comment.