Skip to content

This is an implementation of ResNet-34 in TensorFlow2.0 using the Imperative API (subclassing tensorflow.keras.Model)

Notifications You must be signed in to change notification settings

safwankdb/ResNet34-TF2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

ResNet34-TF2

This is an implementation of ResNet-34 in TensorFlow2.0 using the Imperative API (subclassing tensorflow.keras.Model)

Residual blocks

Residual Block Scheme

Code Walkthrough

The architecture is based on 34 layer sample (snippet from paper)

Architecture Reference

There are two key aspects to note here

  1. conv2_1 has stride of (1, 1) while remaining conv layers has stride (2, 2) at the beginning of the block.
  2. At the end of the first skip connection of a block, there is a disconnect in number of filters, width and height at the merge layer. This is addressed by shortcut conv3 in ResBlock For remaining cases, input is directly merged with residual block as identity. Note that each Conv2D layer is followed by batch normalization.

References

ResNet 34 as described in Deep Residual Learning for Image Recognition

About

This is an implementation of ResNet-34 in TensorFlow2.0 using the Imperative API (subclassing tensorflow.keras.Model)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages