bugfix for tools/extra/parse_log.sh #1015
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
./tools/extra/parse_log.sh was broken by the recent changes to the training output, in particular by the way test accuracy and test loss are now displayed. caffe.log.test had empty columns where accuracy and loss per iteration were supposed to show up.
previously (training output):
I0828 00:56:34.795725 31294 solver.cpp:177] Test score #0: 0.9319
I0828 00:56:34.795765 31294 solver.cpp:177] Test score #1: 0.173513
now (training output):
I0831 01:21:36.325670 8457 solver.cpp:302] Test net output #0: accuracy = 0.9426
I0831 01:21:36.325687 8457 solver.cpp:302] Test net output #1: loss = 0.152957 (* 1 = 0.152957 loss)
culprit in parse_log.sh:
grep 'Test score #0' aux.txt | awk '{print $8}' > aux1.txt
grep 'Test score #1' aux.txt | awk '{print $8}' > aux2.txt
Also, fixed a number of typos and updated the script description.