Print blob debug info during training if SolverParameter "debug_info" field is set#796
Merged
jeffdonahue merged 2 commits intoBVLC:devfrom Jul 26, 2014
Merged
Conversation
Contributor
Author
|
I decided that printing both the sum and mean of absolute values is a bit visually overwhelming, and the sum isn't particularly useful, so I changed to printing just the mean in the last commit. Here's what it looks like now: I think I'll merge this myself if nobody objects within a few hours -- it's an invisible change unless you specifically enable it. The information in and formatting of the output can be adjusted later if people dislike it. One thing people may want is to, e.g., only see the [Update] information. This can also be introduced later by adding finer-grained debug options in the SolverParameter proto message. |
new "debug_info" field in SolverParameter is set.
Member
|
SGTM |
Contributor
Author
|
thanks for taking a look @Yangqing! |
jeffdonahue
added a commit
that referenced
this pull request
Jul 26, 2014
Print blob debug info during training if SolverParameter "debug_info" field is set
Merged
mitmul
pushed a commit
to mitmul/caffe
that referenced
this pull request
Sep 30, 2014
Print blob debug info during training if SolverParameter "debug_info" field is set
RazvanRanca
pushed a commit
to RazvanRanca/caffe
that referenced
this pull request
Nov 4, 2014
Print blob debug info during training if SolverParameter "debug_info" field is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
(Heavily inspired by the venerable cuda-convnet.)
This PR lets you add "debug_info: true" to your solver.prototxts to compute and print debug information during the forward pass, backward pass, and updates (only prints on "display" iterations when the training loss is normally displayed). Specifically, the information that's printed is L1 norms (sum of absolute values) followed by the mean absolute value in parentheses. This can be helpful for debugging issues with training. For example, if you see a nan/inf loss, this would let you figure out which layer is producing the first nan/inf and when. Here's what the output looks like when you add
debug_info: trueto the end oflenet_consolidated_solver.prototxt: