Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
A Python script for at-a-glance net summary #3090
+140
−0
Conversation
|
(chatted offline, all loved it, merging :)) |
Yangqing
added a commit
that referenced
this pull request
Dec 9, 2015
|
|
Yangqing |
03a00e8
|
Yangqing
merged commit 03a00e8
into
BVLC:master
Dec 9, 2015
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
watts4speed
commented
Dec 9, 2015
|
Love the script! By the way, what would be really cool is if you broke out the TRAIN and TEST networks. |
lukeyeager
referenced
this pull request
May 19, 2016
Closed
Update summarize.py to select different netstate options #4174
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
longjon commentedSep 19, 2015
So you've got complicated nets, perhaps generated by pycaffe's net spec, resulting in lengthy and intricate prototxt files. You code carefully, but sometimes you make mistakes... mistakes that result in training the wrong net, mistakes that just weren't obvious from the pages of Python, the rapidly scrolling log files, the endlessly verbose prototxt, the loss that's still kinda falling, the results that are just mediocre...
The aim of this tool is to provide a concise but comprehensive listing of the computation as Caffe sees it, so that you can tell at-a-glance, among other things:
Here's some example output, for "CaffeNet"'s
deploy.prototxt:Now for
train_val.prototxt, showing LR and decay multipliers:And the example for which I wrote this, showing finetuning of certain layers, Python layers, and loss weight:
The actual output uses ANSI color codes, making connectivity more obvious, and pointing out which bottoms and tops are disconnected, e.g., for CaffeNet

train_val:The colors were picked to stand out for a deuteranomalous person using a white-on-black terminal (i.e., me); they might not work for you and aren't very aesthetic (patches welcome!). (Of course, seeing the actual graph would be more ideal, but that's also more challenging to display concisely and clearly or on a terminal.)
This is a first take. Many things that would be nice to display aren't displayed (e.g., note lack of phase information above). I'll probably dogfood this along a bit (but no promises!), feedback and patches are welcome.