Created
April 28, 2020 10:27
-
-
Save pythonlessons/130669ba09d142159865ddcf39e4f007 to your computer and use it in GitHub Desktop.
Yolo_v3_residual_block
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
| def residual_block(input_layer, input_channel, | |
| filter_num1, filter_num2): | |
| short_cut = input_layer | |
| conv = convolutional(input_layer, filters_shape= | |
| (1, 1, input_channel, filter_num1)) | |
| conv = convolutional(conv , filters_shape= | |
| (3, 3, filter_num1, filter_num2)) | |
| residual_output = short_cut + conv | |
| return residual_output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment