ParakeetEricRoss/docs/source/install.rst

84 lines
2.5 KiB
ReStructuredText
Raw Normal View History

2021-01-13 11:06:15 +08:00
=============
Installation
=============
Install PaddlePaddle
2021-01-14 15:12:36 +08:00
------------------------
2021-01-18 15:15:49 +08:00
Parakeet requires PaddlePaddle as its backend. Note that 2.0.0rc1 or newer versions
2021-01-13 11:06:15 +08:00
of paddle is required.
Since paddlepaddle has multiple packages depending on the device (cpu or gpu)
and the dependency libraries, it is recommended to install a proper package of
paddlepaddle with respect to the device and dependency library versons via
pip.
Installing paddlepaddle with conda or build paddlepaddle from source is also
supported. Please refer to `PaddlePaddle installation <https://www.paddlepaddle.org.cn/install/quick/)>`_ for more details.
Example instruction to install paddlepaddle via pip is listed below.
**PaddlePaddle with gpu**
.. code-block:: bash
python -m pip install paddlepaddle-gpu==2.0.0rc1.post101 -f https://paddlepaddle.org.cn/whl/stable.html
python -m pip install paddlepaddle-gpu==2.0.0rc1.post100 -f https://paddlepaddle.org.cn/whl/stable.html
**PaddlePaddle with cpu**
.. code-block:: bash
python -m pip install paddlepaddle==2.0.0rc1 -i https://mirror.baidu.com/pypi/simple
Install libsndfile
-------------------
Experimemts in parakeet often involve audio and spectrum processing, thus
``librosa`` and ``soundfile`` are required. ``soundfile`` requires a extra
C library ``libsndfile``, which is not always handled by pip.
2021-01-18 15:15:49 +08:00
For windows and mac users, ``libsndfile`` is also installed when installing
2021-01-13 11:06:15 +08:00
``soundfile`` via pip, but for linux users, installing ``libsndfile`` via
system package manager is required. Example commands for popular distributions
are listed below.
.. code-block::
# ubuntu, debian
sudo apt-get install libsndfile1
2021-01-14 15:12:36 +08:00
# centos, fedora
2021-01-13 11:06:15 +08:00
sudo yum install libsndfile
# openSUSE
sudo zypper in libsndfile
For any problem with installtion of soundfile, please refer to
`SoundFile <https://pypi.org/project/SoundFile>`_.
2021-01-14 13:17:29 +08:00
Install Parakeet
2021-01-13 11:06:15 +08:00
------------------
There are two ways to install parakeet according to the purpose of using it.
2021-01-14 15:12:36 +08:00
#. If you want to run experiments provided by parakeet or add new models and
experiments, it is recommended to clone the project from github
(`Parakeet <https://github.com/PaddlePaddle/Parakeet>`_), and install it in
editable mode.
2021-01-13 11:06:15 +08:00
.. code-block:: bash
2021-01-14 15:12:36 +08:00
git clone https://github.com/PaddlePaddle/Parakeet
cd Parakeet
pip install -e .
2021-01-13 11:06:15 +08:00
#. If you only need to use the models for inference by parakeet, install from
2021-01-14 15:12:36 +08:00
pypi is recommended.
2021-01-13 11:06:15 +08:00
.. code-block:: bash
2021-01-14 15:12:36 +08:00
pip install paddle-parakeet