错误:
File “/home/xtu04/PycharmProjects/Keras-Semantic-Segmentation-master/utils/utils.py”, line 16, in cv2_letterbox_image
image = cv2.resize(image, (nw, nh), interpolation=cv2.INTER_CUBIC)
TypeError: resize() got an unexpected keyword argument ‘interpolation’
swig/python detected a memory leak of type ‘int64_t *’, no destructor found.
swig/python detected a memory leak of type ‘int64_t *’, no destructor found.
解答:
看到resize前面是cv2。reszie,即升级opencv-python 即可。