1
$\begingroup$

When you are fine-tuning a CNN like ResNet, VGG, EfficientNet, etc and you want to train the model with your own images, or even when you want to do a inference with any image of your dataset, do you have to do the same preprocessing steps to your images like do the same mean subtraction with the same values as the ones that was done to originally train that model? Or is it not necessary to get good results?

Thank you.

$\endgroup$
1
  • $\begingroup$ You should do the same preprocessing that you will do to test-time images $\endgroup$
    – jtb
    Commented Sep 27, 2021 at 19:54

1 Answer 1

1
$\begingroup$

You will get the best results if the new images are preprocessed in the exact same way the training images were preprocessed.

The biggest issue is resizing the images to be the same size as the input layer expects.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.