Python使用Tensorflow出现错误: UserWarning: The default mode, 'constant'
Python使用Tensorflow出现错误:
UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in " Traceback (most recent call last):
解决方法:
将
transform.resize(ima, (IMG_SIZE, IMG_SIZE))
改为
transform.resize(ima, (IMG_SIZE, IMG_SIZE), mode='constant')