File tree Expand file tree Collapse file tree 1 file changed +9
-23
lines changed Expand file tree Collapse file tree 1 file changed +9
-23
lines changed Original file line number Diff line number Diff line change 1818
1919class FPN2D (keras .Model ):
2020 def __init__ (
21- self ,
22- inputs ,
23- blocks ,
24- block ,
25- freeze_bn = True ,
26- numerical_names = None ,
27- * args ,
28- ** kwargs
21+ self ,
22+ inputs ,
23+ blocks ,
24+ block ,
25+ freeze_bn = True ,
26+ numerical_names = None ,
27+ * args ,
28+ ** kwargs
2929 ):
3030 if keras .backend .image_data_format () == "channels_last" :
3131 axis = 3
@@ -74,14 +74,6 @@ def __init__(
7474 size = (2 , 2 )
7575 )(pyramid_5 )
7676
77- pyramid_5 = keras .layers .Conv2D (
78- filters = 256 ,
79- kernel_size = 3 ,
80- strides = 1 ,
81- padding = "same" ,
82- name = "p5"
83- )(pyramid_5 )
84-
8577 pyramid_4 = keras .layers .Conv2D (
8678 filters = 256 ,
8779 kernel_size = 1 ,
@@ -154,13 +146,7 @@ def __init__(
154146 name = "p2"
155147 )(pyramid_2 )
156148
157- pyramid_6 = keras .layers .Conv2D (
158- filters = 256 ,
159- kernel_size = 3 ,
160- strides = 2 ,
161- padding = "same" ,
162- name = "p6"
163- )(c5 )
149+ pyramid_6 = keras .layers .MaxPooling2D (strides = 2 , name = "p6" )(pyramid_5 )
164150
165151 outputs = [
166152 pyramid_2 ,
You can’t perform that action at this time.
0 commit comments