Spaces:
Runtime error
Runtime error
Upload Singularity
Browse files- Singularity +37 -0
Singularity
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BootStrap: docker
|
| 2 |
+
From: nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
| 3 |
+
|
| 4 |
+
%post
|
| 5 |
+
# Downloads the latest package lists (important).
|
| 6 |
+
apt-get update -y
|
| 7 |
+
# Runs apt-get while ensuring that there are no user prompts that would
|
| 8 |
+
# cause the build process to hang.
|
| 9 |
+
# python3-tk is required by matplotlib.
|
| 10 |
+
# python3-dev is needed to require some packages.
|
| 11 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
| 12 |
+
python3 \
|
| 13 |
+
python3-tk \
|
| 14 |
+
python3-pip \
|
| 15 |
+
python3-dev \
|
| 16 |
+
libsndfile1 \
|
| 17 |
+
libsndfile1-dev \
|
| 18 |
+
ffmpeg \
|
| 19 |
+
git
|
| 20 |
+
# Reduce the size of the image by deleting the package lists we downloaded,
|
| 21 |
+
# which are useless now.
|
| 22 |
+
rm -rf /var/lib/apt/lists/*
|
| 23 |
+
|
| 24 |
+
# Install Pipenv.
|
| 25 |
+
pip3 install pipenv
|
| 26 |
+
|
| 27 |
+
# Install Python modules.
|
| 28 |
+
pip3 install future numpy librosa musdb museval h5py tqdm sortedcontainers soundfile
|
| 29 |
+
pip3 install torch==1.4.0 torchvision==0.5.0 tensorboard
|
| 30 |
+
|
| 31 |
+
%environment
|
| 32 |
+
# Pipenv requires a certain terminal encoding.
|
| 33 |
+
export LANG=C.UTF-8
|
| 34 |
+
export LC_ALL=C.UTF-8
|
| 35 |
+
# This configures Pipenv to store the packages in the current working
|
| 36 |
+
# directory.
|
| 37 |
+
export PIPENV_VENV_IN_PROJECT=1
|