I have trying to import resnet34 and resent50 into a Kaggle Kernal with no success. When I run:
from keras.applications.resnet50 import ResNet50 as resnet50
resnet = ResNet50(weights='imagenet')
learn = ConvLearner.pretrained(resnet, data, precompute=True)
It starts downloading : 'Downloading: "https://download.pytorch.org/models/resnet34-333f7ec4.pth" to /tmp/.torch/models/resnet34-333f7ec4.pth'
but says "URL fetch failure on https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels.h5: None -- [Errno -2] Name or service not known"
and with resnet34:
arch=resnet34
learn = ConvLearner.pretrained(arch, data, precompute=True)
I get: URLError: <urlopen error [Errno -2] Name or service not known>
Others seem to be importing using these same line.