Added dependency for analyze.py running as docker.

pull/45/head
Thorsten Mueller 2020-01-01 22:42:01 +01:00
parent d3730d5851
commit 4ce7f69455
2 changed files with 8 additions and 0 deletions

View File

@ -205,6 +205,12 @@ Example
python analyze.py --train_file_path=~/tacotron/training/train.txt --save_to=~tacotron/visuals --cmu_dict_path=~/cmudict-0.7b
```
In case of docker usage you've to export your DISPLAY variable on container start to successfully create the image files. Ensure x server connections are enabled on your host system.
```
docker run -it -p 3000:3000 -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix mycroft/mimic2:cpu
```
cmu_dict_path is optional if you'd like to visualize the distribution of the phonemes.
analyze.py outputs 6 different plots.

View File

@ -3,6 +3,8 @@ FROM tensorflow/tensorflow:1.8.0-py3
RUN mkdir /root/mimic2
COPY . /root/mimic2
WORKDIR /root/mimic2
RUN apt-get update
RUN apt-get install -y python3-tk
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT [ "/bin/bash" ]