Create a ResNet50 model fails

Author: fhdiazeCreated Oct 24, 2016Updated Jun 8, 2021

Hi,

I have a problem when I try to create a ResNet50 model. I am getting the next error:

Note: My keras version is keras.version='1.1.0'

Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_th_dim_ordering_th_kernels_notop.h5

Exception Traceback (most recent call last) in () 23 # CNN CONFIGURATION 24 frame = Input(shape=frameDims) ---> 25 resNet50 = ResNet50(include_top=False, weights='imagenet') 26 resNet50.trainable = False 27 flat = FlattenK()

/home/fhdiaze/.local/lib/python2.7/site-packages/keras/applications/resnet50.pyc in ResNet50(include_top, weights, input_tensor) 207 TH_WEIGHTS_PATH_NO_TOP, 208 cache_subdir='models', --> 209 md5_hash='f64f049c92468c9affcd44b0976cdafe') 210 model.load_weights(weights_path) 211 if K.backend() == 'tensorflow':

/home/fhdiaze/.local/lib/python2.7/site-packages/keras/utils/data_utils.pyc in get_file(fname, origin, untar, md5_hash, cache_subdir) 82 urlretrieve(origin, fpath, dl_progress) 83 except URLError as e: ---> 84 raise Exception(error_msg.format(origin, e.errno, e.reason)) 85 except HTTPError as e: 86 raise Exception(error_msg.format(origin, e.code, e.msg))

Exception: URL fetch failure on https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_th_dim_ordering_th_kernels_notop.h5: None -- [Errno 111] Connection refused

Thanks.

Source: fchollet/deep-learning-models