p2irc / deepplantphenomics

Deep learning for plant phenotyping.
GNU General Public License v2.0
135 stars 46 forks source link

Residual Connections #36

Closed donovanlavoie closed 5 years ago

donovanlavoie commented 5 years ago

This adds the ability for networks to use skip/residual connections. Most of the changes are based on their implementation in the LSP-Lab repository.

This is done by adding a new Layer object, skipConnection, for adding residual connections to networks. The nature of residual connections means that the basic forward_pass function also had to be changed to accommodate them.

Previous test models and unit tests still work with the forward pass changes and a couple of new tests check that the residual connections can be added and work at a basic level.

Some documentation was added for the new layer as well, but I consider it a draft at best and would welcome edits to it.