mobile-deeplab-v3-plus
mobile-deeplab-v3-plus copied to clipboard
Can i know how to prediction with python
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?
please have a try with python 2.7/tf 1.12
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
How do you predict with this model?