PaddleHub icon indicating copy to clipboard operation
PaddleHub copied to clipboard

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

Open we-enjoy-today opened this issue 3 years ago • 1 comments

我运行的程序: 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,

we-enjoy-today avatar Sep 17 '22 05:09 we-enjoy-today

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

rainyfly avatar Sep 19 '22 02:09 rainyfly