PaddlePaddle / PaddleHub

Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.67k stars 2.08k forks source link

在下一版中优化包依赖,避免每次运行出警告 #2030

Open we-enjoy-today opened 1 year ago

we-enjoy-today commented 1 year ago

我运行的程序: import paddlehub as hub module = hub.Module(name="stable_diffusion") results = module.generate_image(text_prompts=["原神中的派蒙"], style="油画")

每次都会出现的警告: /usr/bin/python3 /Users/wisers/PycharmProjects/PlayPaddle/main.py /Users/wisers/Library/Python/3.9/lib/python/site-packages/paddlenlp/transformers/image_utils.py:213: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead. resample=Image.BILINEAR, /Users/wisers/Library/Python/3.9/lib/python/site-packages/paddlenlp/transformers/image_utils.py:379: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead. resample=Image.NEAREST, /Users/wisers/Library/Python/3.9/lib/python/site-packages/paddlenlp/transformers/ernie_vil/feature_extraction.py:65: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead. resample=Image.BICUBIC, /Users/wisers/Library/Python/3.9/lib/python/site-packages/paddlenlp/transformers/clip/feature_extraction.py:64: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead. resample=Image.BICUBIC,

rainyfly commented 1 year ago

你好,已经收到您的反馈。