keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 913 forks source link

add resnet18 and resnet34 #151

Open dulucas opened 4 years ago

dulucas commented 4 years ago

Hi! could you please add resnet18 and resnet34 with their pre-trained weights on Imagenet? Thanks!

jjedele commented 4 years ago

I also think this would be a good addition - Resnet50 can be a bit heavy for some tasks. Are there any reasons for them not being included? It seems fairly straight-forward to add these configurations to the existing codebase.

jjedele commented 4 years ago

Also because there is another Resnet implementation in Keras Contrib including 18 and 34.

WurmD commented 4 years ago

Some feedback here about for reasons it's not included would be appreciated. Also, keras-contrib says "is deprecated. Use TensorFlow Addons.", but the https://github.com/keras-team/keras-contrib/tree/master/keras_contrib/applications folder which includes resnet18 is not currently in https://github.com/tensorflow/addons/tree/master/tensorflow_addons

dulucas commented 4 years ago

Hi all, I use resnet model provided in this repo instead and it works fine for me, https://github.com/qubvel/classification_models

Linriversluv commented 4 years ago

Yeah, it would be great if they're included.

jmarrietar commented 3 years ago

+1

hamddan4 commented 3 years ago

Also agree. If you have all the blocks for ResNet50, ResNet101, ResNet152, why not adding a basic structure as keras_contrib does so you can create your own ResNet?

davidlrobinson commented 3 years ago

+1

KaleabTessera commented 2 years ago

+1

zaccharieramzi commented 2 years ago

For anyone looking for a maintained official implementation, it is available in tensorflow/models. There is however a slight "bug" in the implementation because it has an extra convolution compared to the paper and to PyTorch, but I created a PR to fix it.

zaccharieramzi commented 1 year ago

The model is now in keras-cv after this PR.