Skip to content

Conversation

@jyegerlehner
Copy link
Contributor

This PR extends the MVNLayer to allow the mean and variance blobs to be exported as top blobs. It adds a new layer type InverseMVNLayer which takes the mean and variance as bottom blobs, and performs the inverse operation (adding the mean back, and denormalizing for variance). A use case for this is an autoencoder that feeds input into the MVNLayer, and generates the output from the InverseMVNLayer, with autoencoding layers in-between.

There was also a problem with the MVNLayer that was fixed: if it is given input that has exactly zero variance (e.g. a solid color RGB image, with across_channels=false), it computes the variance as E(X^2) - (EX)^2, but the result isn't usually exactly zero, but has small negative values due to floating point resolution. The subsequent square root operation then produces NaN. This PR also fixes this issue.

shelhamer and others added 5 commits February 19, 2015 18:35
Next: release candidater
set the right rpath for tools and examples respectively

thanks for the report @mees!
[build] fix dynamic linking of tools
@jyegerlehner
Copy link
Contributor Author

Oops this is broken for across_channels=true. I will fix and update as am able. Or close.

Anatoly Baksheev and others added 6 commits February 22, 2015 18:58
philkr and others added 9 commits February 24, 2015 14:06
Making python3 work with cmake and the new python wrapper
Commands, such as $(error ...), are not allowed to be indented with tabs
outside of targets, throwing an error instead of outputting the actual
error. The solution is to use innocuous spaces instead. Ideally, spaces
should be used everywhere outside targets, but since make does not mind
it if variable assignments are tab-indented outside targets, a complete
overhaul is not necessary. However, if more errors are added, it might
make more sense to be consistent.

Also, make will already add a period so I removed it.
fix accelerate / veclib path for OS X 10.10
Replaced illegal tab in Makefile with spaces.
Decoding the datum before feeding it into the reshaping data layer
@jyegerlehner
Copy link
Contributor Author

Replaced with 1979.

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.