NVIDIA / mellotron

Mellotron: a multispeaker voice synthesis model based on Tacotron 2 GST that can make a voice emote and sing without emotive or singing training data
BSD 3-Clause "New" or "Revised" License
854 stars 187 forks source link

Installation issues on Ubuntu 18.04 #40

Open loretoparisi opened 4 years ago

loretoparisi commented 4 years ago

Installation could be tricky on Ubuntu 18.04, here is a possibile solution to this error:

    ============================================================================
                            * The following required packages can not be built:
                            * freetype, png * Try installing freetype with `apt-
                            * get install libfreetype6-dev` * Try installing png
                            * with `apt-get install libpng12-dev`

First install the following:

sudo apt-get install --reinstall libpng16-16=1.6.34-1
pip install -r requirements.txt

Then one error is still there:

============================================================================
                            * The following required packages can not be built:
                            * freetype * Try installing freetype with `apt-get
                            * install libfreetype6-dev`

Do the following

sudo apt-get install libfreetype6-dev
pip install -r requirements.txt

Now you may get this error:

    In file included from src/ft2font.cpp:9:0:
    src/mplutils.h:31:10: fatal error: Python.h: No such file or directory
     #include <Python.h>
              ^~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------

to fix it install python dev:

sudo apt install libpython3.7-dev
pip install -r requirements.txt

You may find now another (!) error:

      File "scipy/linalg/setup.py", line 19, in configuration
        raise NotFoundError('no lapack/blas resources found')
    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

To get rid of it try

sudo apt install libatlas-base-dev
sudo apt-get install libblas-dev  liblapack-dev

At this point, unfortunately I have scipy compilation error, I cannot get rid of so far, here it is the full error log.

rafaelvalle commented 4 years ago

Try using a docker container. Start from this and add mellotron requirements not included in the dockerfile. https://github.com/NVIDIA/tacotron2/blob/master/Dockerfile