消除警告

DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  'nearest': Image.NEAREST,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:37: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  'bilinear': Image.BILINEAR,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:38: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
  'bicubic': Image.BICUBIC,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:39: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
  'box': Image.BOX,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:40: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
  'lanczos': Image.LANCZOS,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:41: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
  'hamming': Image.HAMMING

DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.'nearest': Image.NEAREST,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:37: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.'bilinear': Image.BILINEAR,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:38: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.'bicubic': Image.BICUBIC,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:39: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.'box': Image.BOX,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:40: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.'lanczos': Image.LANCZOS,
D:\ProgramData\Anaconda3\envs\paddledetect\lib\site-packages\paddle\vision\transforms\functional_pil.py:41: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.'hamming': Image.HAMMING

安装paddlepaddle,消除警告的方法如下

解决类似的XXXWarning,在不影响整体的代码结构与功能的情况下通过

import warnings
warnings.filterwarnings("ignore")

来过滤掉相关的警告提示。除非在Console需要输出整洁,否则不建议采用此方法,因为警告和提示会告知程序某些地方版本需要更新或者某些地方需要完善。

DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl相关推荐

  1. 【DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01).的解决方案】

    DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl ...

  2. DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl

    DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl ...

  3. 出现 DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 的解决方法

    目录 1. 问题所示 2. 原理分析 3. 解决方法 1. 问题所示 使用plt代码模块的时候 问题如下: /home/kkjz/anaconda3/envs/py17/lib/python3.7/s ...

  4. DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.

    DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version. ...

  5. 关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur

    关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur ...

  6. php解决 mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysq

    微信小程序开发交流qq群   173683895    承接微信小程序开发.扫码加微信. The mysql extension is deprecated and will be removed i ...

  7. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead

    1.现象描述: 以前在测试环境中使用过icehouse版本,记得当时查看网络列表是使用neutron net-list,最近两天在测试openstack ocata的时候发现好多之前的命令都不能正常使 ...

  8. 成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use

    成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use ...

  9. Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version.

    2019独角兽企业重金招聘Python工程师标准>>> PHP 接口,使用 ajax post方式提交数据的时候报错: Automatically populating $HTTP_ ...

最新文章

  1. ExtJs选项卡,求大神解答
  2. Java里边什么是值传递和引用传递?两个有什么区别
  3. C#进阶系列——WebApi 跨域问题解决方案:CORS
  4. android layer-list,Android layer-list的属性和使用具体解释
  5. elementui中tabs切换item中的内容会变_中后台UX优化之道
  6. 乘势而起,走进2019年风口“边缘计算”
  7. Codeforces Round #371 (Div. 2) C. Sonya and Queries 水题
  8. 如何复制百度文库上的文本
  9. BiometricPrompt之三 - Fingerprint, Iris, Face UI优先级
  10. 杂记(梯度,散度,旋度)// kron函数 //numpy.clip()函数// if __name__ == '__main__'
  11. 推荐系统的PMF - 概率矩阵分解和协同过滤
  12. linux系统外接硬盘_linux系统外接存储管理命令
  13. Photoshop 2023 v24.2 for Mac 中英文版有哪些新功能呢 支持M1 M2机型 增加了哪些新相机配 解决另存为黑屏的问题
  14. MATLAB调用DLL
  15. SkyWalking触发告警发送邮箱
  16. VMware安装win7后,安装VMware Tools时报错安装程序无法继续
  17. ajax传递数组.net,ajax传递数组问题
  18. ICLR 2021|基于GAN的二维图像无监督三维形状重建
  19. android gridview 计算器,用GridView显示得到的网络图片
  20. 11.5 Daily Scrum

热门文章

  1. python3.7-初学篇-07
  2. “温莎当下 麦克成风”2021赛季杭州赛区决赛精彩收官
  3. 最是那一低头地温柔(徐志摩经典爱情语录)
  4. 制作一个惊艳所有人的计算器
  5. 以前seo和现在seo的区别和演变
  6. ZCash的零知识证明
  7. SpringBoot热启动
  8. 完美删除EISA硬盘隐藏分区(OEM隐藏分区)
  9. k8s之Horizontal Pod Autoscaler(Pod水平自动伸缩)
  10. 一种Cortex-M内核中的精确延时方法