mobile-deeplab-v3-plus icon indicating copy to clipboard operation
mobile-deeplab-v3-plus copied to clipboard

Can i know how to prediction with python

Open zoster0828 opened this issue 5 years ago • 3 comments

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?

zoster0828 avatar Dec 25 '19 02:12 zoster0828

please have a try with python 2.7/tf 1.12

nolanliou avatar Jan 06 '20 06:01 nolanliou

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

wreed avatar Apr 16 '20 23:04 wreed

How do you predict with this model?

MIC10086 avatar May 11 '20 08:05 MIC10086