Sorry for my English. Refer in https://tfhub.dev/tensorflow/lite-model/deeplabv3/1/metadata/2,the origin image process should be sub 127.5 then div 127.5.The code in line 2 of setcion 6 should like this: np_res_im = ((np_res_im-127.5)/127.5)).astype('float32') displace np_res_im = (np_res_im/255).astype('float32') After do it,the accuracy will improve.