@@ -105,8 +105,8 @@ def conv_block(input, kernel_size, n_filters, stage, block, strides=(2, 2)):
105105 return x
106106
107107
108- block_names = ['2a' , '2b' , '2c' , '3a' , '3b' , '3c' , '3d' , '4a' , '4b' , '4c' , '4d' , '4e' , '4f' ,
109- '5a' , '5b' , '5c' ] + ['avg_pool' , 'fc1000' ]
108+ block_names = ['2a' , '2b' , '2c' , '3a' , '3b' , '3c' , '3d' , '4a' , '4b' , '4c' , '4d' , '4e' , '4f' , '5a' , '5b' , '5c'
109+ ] + ['avg_pool' , 'fc1000' ]
110110block_filters = [[64 , 64 , 256 ], [128 , 128 , 512 ], [256 , 256 , 1024 ], [512 , 512 , 2048 ]]
111111
112112
@@ -178,7 +178,8 @@ def ResNet50(pretrained=False, end_with='fc1000', n_classes=1000, name=None):
178178def restore_params (network , path = 'models' ):
179179 logging .info ("Restore pre-trained parameters" )
180180 maybe_download_and_extract (
181- 'resnet50_weights_tf_dim_ordering_tf_kernels.h5' , path ,
181+ 'resnet50_weights_tf_dim_ordering_tf_kernels.h5' ,
182+ path ,
182183 'https://github.com/fchollet/deep-learning-models/releases/download/v0.2/' ,
183184 ) # ls -al
184185 try :
0 commit comments