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')

 

posted @ 2019-10-16 10:29  小大大小  阅读(650)  评论(0编辑  收藏  举报