Skip to content

Request for a newer version #2

@kwokyto

Description

@kwokyto

Hi, I would like to put in a request for a newer version of PaddlePaddle because I am currently on a project that requires minimally PaddlePaddle==2.2.0. Are there any plans to make this? Thank you!

Environment

  • Kernel: Linux Raspberry Pi 5.15.32
  • Processor: aarch64
  • OS: GNU/Linux
  • Python version: 3.7.2

Requirements

  • PaddlePaddle>=2.2.0

Error faced

The error faced while using PaddlePaddle==2.0.0 was: `AttributeError: module 'paddle' has no attribute 'float32'. Based on my research (PaddlePaddle/PaddleSpeech#1240), it was recommended to use PaddlePaddle>=2.2.0 instead.

Steps to reproduce error

## Installation and Set Up
$ sudo apt-get install cmake wget libatlas-base-dev libopenblas-dev libblas-dev liblapack-dev patchelf gfortran
$ pip install Cython six requests wheel pyyaml protobuf==3.13.0
$ pip install -U setuptools
$ wget https://github.com/Qengineering/Paddle-Raspberry-Pi/raw/main/paddlepaddle-2.0.0-cp37-cp37m-linux_aarch64.whl
$ pip install paddlepaddle-2.0.0-cp37-cp37m-linux_aarch64.whl
$ pip install pytest-runner -i https://pypi.tuna.tsinghua.edu.cn/simple
$ pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple

## Using PaddleSpech (and PaddlePaddle)
$ paddlespeech asr –model transformer_librispeech –lang en –input sample.wav -v
/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:26: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  def convert_to_list(value, n, name, dtype=np.int):
/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddle/vision/transforms/functional_pil.py:36: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  'nearest': Image.NEAREST,
/home/elock/archiconda3/envs/paddle/lib/python3.7/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,
/home/elock/archiconda3/envs/paddle/lib/python3.7/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,
/home/elock/archiconda3/envs/paddle/lib/python3.7/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,
/home/elock/archiconda3/envs/paddle/lib/python3.7/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,
/home/elock/archiconda3/envs/paddle/lib/python3.7/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
Traceback (most recent call last):
  File "/home/elock/archiconda3/envs/paddle/bin/paddlespeech", line 5, in <module>
    from paddlespeech.cli.entry import _execute
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddlespeech/cli/__init__.py", line 16, in <module>
    from .asr import ASRExecutor
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddlespeech/cli/asr/__init__.py", line 14, in <module>
    from .infer import ASRExecutor
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 29, in <module>
    from ..executor import BaseExecutor
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddlespeech/cli/executor.py", line 28, in <module>
    from .utils import download_and_decompress
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddlespeech/cli/utils.py", line 27, in <module>
    import paddleaudio
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddleaudio/__init__.py", line 16, in <module>
    from . import features
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddleaudio/features/__init__.py", line 14, in <module>
    from .layers import LogMelSpectrogram
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddleaudio/features/layers.py", line 249, in <module>
    class MFCC(nn.Layer):
  File "/home/elock/archiconda3/envs/paddle/lib/python3.7/site-packages/paddleaudio/features/layers.py", line 291, in MFCC
    dtype: str=paddle.float32) -> None:
AttributeError: module 'paddle' has no attribute 'float32'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions