Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i know how to prediction with python #9

Open
zoster0828 opened this issue Dec 25, 2019 · 3 comments
Open

Can i know how to prediction with python #9

zoster0828 opened this issue Dec 25, 2019 · 3 comments

Comments

@zoster0828
Copy link

zoster0828 commented Dec 25, 2019

image

I try to run with python.
python 3.6 / tf 1.15

but i can't get well result.
Input:0
Output:0
input image is convert to np array,
and output decode with decode_labels function.

any wrong steps i have?

@nolanliou
Copy link
Owner

please have a try with python 2.7/tf 1.12

@wreed
Copy link

wreed commented Apr 16, 2020

You have to normalize the image input for mobilenet. So given an input image as a numpy array, you would need to do something like:

mean = np.array([0.485, 0.456, 0.406], dtype=np.float32)
std = np.array([0.229, 0.224, 0.225], dtype=np.float32)
img = img / 255. - mean
img = img / std

@MIC10086
Copy link

How do you predict with this model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants