Skip to content

Comments

Fix sketchy label initialization in NetTest#1661

Merged
jeffdonahue merged 1 commit intoBVLC:devfrom
longjon:init-test-labels
Dec 31, 2014
Merged

Fix sketchy label initialization in NetTest#1661
jeffdonahue merged 1 commit intoBVLC:devfrom
longjon:init-test-labels

Conversation

@longjon
Copy link
Contributor

@longjon longjon commented Dec 30, 2014

NetTest's TinyNet uses a softmax loss layer, but initializes its labels with a zero-mean Gaussian(!). This means that labels are effectively (usually) either 0 or (invalidly) -1.

This PR add a data_filler to make the labels always zero. Note that TrickyNet also uses this setup, but never calls forward or backward, so this is not an issue.

Previously, labels were being nonsensically filled with a zero-mean
Gaussian. Now they are just set to constant zero. Note that this is not
necessary for TrickyNet, neither forward nor backward are ever called.
@jeffdonahue
Copy link
Contributor

Thanks for the fix @longjon. (Merging despite Travis grey X because it was due to the GPU builds timing out; the CPU builds which run the tests pass.)

jeffdonahue added a commit that referenced this pull request Dec 31, 2014
Fix sketchy label initialization in NetTest
@jeffdonahue jeffdonahue merged commit b8715c6 into BVLC:dev Dec 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants