Skip to content

Instantly share code, notes, and snippets.

@pythonlessons
Created April 28, 2020 10:27
Show Gist options
  • Select an option

  • Save pythonlessons/130669ba09d142159865ddcf39e4f007 to your computer and use it in GitHub Desktop.

Select an option

Save pythonlessons/130669ba09d142159865ddcf39e4f007 to your computer and use it in GitHub Desktop.
Yolo_v3_residual_block
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