How to properly preprocess images? #142
Replies: 2 comments 8 replies
-
The add_pre_post_process just adds 2 functions |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a similar question as I try to find how to get the same Top-1 Accuracy as you mention in the README for different models. Initially I guessed that you used the In a nutshell, I wonder if you have the configurations that allow the same accuracies as mentioned in the README somewhere? (I suppose they are the Top-1 acc on the validation set of ImageNet right?) PS: I recently discovered your repository and it is really impressive, thank you a lot :) |
Beta Was this translation helpful? Give feedback.
-
I see, many models have preprocess layer:
add_pre_post_process(model,
rescale_mode=rescale_mode)`But examples says I need to call preprocess forcibly:
pred = mm([mm.preprocess_input(chelsea())])
So what's the correct way, assuming I have raw images with [0, 256] range?
Beta Was this translation helpful? Give feedback.
All reactions