RedHenLab/singularity_containers:deepspeech2
$ singularity pull shub://RedHenLab/singularity_containers:deepspeech2
Singularity Recipe
Bootstrap:docker
From:ubuntu:latest
%labels
MAINTAINER xuzhaoqing
%environment
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
%post
apt-get update
apt-get install -y cmake \
locales \
language-pack-en \
git \
python2.7 \
python-pip \
gcc \
pkg-config \
libogg-dev \
libvorbis-dev \
libboost-dev \
swig \
wget \
doxygen
# Manually compile flac-1.3.2
wget http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz
tar -xvf flac-1.3.2.tar.xz
cd flac-1.3.2
./configure --prefix=$HOME/usr --disable-ogg
make
make install
cd
# Manually compile libmkldnn.so
git clone https://github.com/01org/mkl-dnn.git
cd mkl-dnn
cd scripts && ./prepare_mkl.sh && cd ..
mkdir -p build && cd build && cmake .. && make && make install
cd src
cp libmkldnn.so.0.14.0 /usr/lib/libmkldnn.so.0.14.0
cd /usr/lib
ln -s libmkldnn.so.0.14.0 libmkldnn.so.0
ln -s libmkldnn.so.0 libmkldnn.so
ldconfig
cd
locale-gen en_US.UTF-8 && dpkg-reconfigure locales
pip install paddlepaddle-gpu
# Get DeepSpeech2 via PaddlePaddle
git clone https://github.com/PaddlePaddle/DeepSpeech.git
cd DeepSpeech
sh setup.sh
# Notes
# There may be an issue if you want to run Jupyter Notebook from the Singularity image -- here's a hint for a workaround:
# Solve Jupyter permission issue
# CMD unset XDG_RUNTIME_DIR && \
# jupyter notebook --port=12220 --no-browser
Collection
- Name: RedHenLab/singularity_containers
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/RedHenLab-singularity_containers-deepspeech2 |
collection name | RedHenLab/singularity_containers |
branch | master |
tag | deepspeech2 |
commit | aef434b07f7324ca9b07f3be58002b253e19feff |
version (container hash) | cd6b244e09c63655455579574ed62a89 |
build date | 2021-03-18T06:49:06.943Z |
size (MB) | 2502 |
size (bytes) | 945467423 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.