keras-applications icon indicating copy to clipboard operation
keras-applications copied to clipboard

add resnet18 and resnet34

Open dulucas opened this issue 4 years ago • 11 comments

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

dulucas avatar Nov 14 '19 13:11 dulucas

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 avatar Feb 22 '20 13:02 jjedele

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

jjedele avatar Feb 22 '20 13:02 jjedele

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

WurmD avatar Apr 20 '20 10:04 WurmD

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

dulucas avatar Apr 20 '20 14:04 dulucas

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

Linriversluv avatar Jul 30 '20 05:07 Linriversluv

+1

jmarrietar avatar Aug 08 '20 16:08 jmarrietar

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?

hamddan4 avatar Aug 11 '20 09:08 hamddan4

+1

davidlrobinson avatar Aug 25 '20 18:08 davidlrobinson

+1

KaleabTessera avatar Apr 01 '22 11:04 KaleabTessera

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 avatar Apr 08 '22 09:04 zaccharieramzi

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

zaccharieramzi avatar Sep 22 '22 17:09 zaccharieramzi