classification_models icon indicating copy to clipboard operation
classification_models copied to clipboard

About pre-processing

Open sibadakesi opened this issue 4 years ago • 3 comments

ResNet18, preprocess_input = Classifiers.get('resnet18')

This funcition which name "preprocess_input" doing nothing, What pre-processing did you used to ? I want use this deep feature to do my work, so i think must use the same pre-processing , thinks.

sibadakesi avatar Apr 27 '20 04:04 sibadakesi

Good question, do you found an answser on how to preprocess image for the resnet18 in keras ?

AlexandreBourrieau avatar Sep 02 '21 12:09 AlexandreBourrieau

Hello, did you ever find an answer? I am also trying to use the pretrained Resnet18. So far I've tried using the preprocess_input function of the Resnet50 model, which is provided by Tensorflow (https://www.tensorflow.org/api_docs/python/tf/keras/applications/resnet50/preprocess_input) but I'm not getting the same results as Pytorch's pretrained Resnet18 model.

aristotelisballas avatar Feb 06 '22 18:02 aristotelisballas

Need only be uint8 at input after image loaded with keras. That works for me.

AlexandreBourrieau avatar Apr 16 '22 14:04 AlexandreBourrieau