-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
61 lines (56 loc) · 2.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM tensorflow/tensorflow:latest-gpu-py3
# tensorflow==1.13.1
# List of common Python packages installed in the Docker image used for this
# challenge. Participants are welcome to suggest other popular Python packages
# to be installed. If necessary, we'll update the Docker image to satisfy the
# need for most participants.
# In the case where you want to use less common packages, you can simply put
# all these packages in the the same folder of your submission (together with
# `model.py`) and the CodaLab platform should be able to find them.
RUN pip install numpy==1.16.2
RUN pip install pandas==0.24.2
RUN pip install jupyter==1.0.0
RUN pip install seaborn==0.9.0
RUN pip install scipy==1.2.1
RUN pip install matplotlib==3.0.3
RUN pip install scikit-learn==0.20.3
RUN pip install pyyaml==5.1.1
RUN pip install psutil==5.6.3
RUN pip install h5py==2.9.0
RUN pip install keras==2.2.4
RUN pip install playsound==1.2.2
RUN pip install librosa==0.7.1
RUN pip install protobuf==3.7.1
RUN pip install xgboost==0.90
RUN pip install pyyaml==5.1.1
RUN pip install lightgbm==2.2.3
RUN pip install torch==1.3.1
RUN pip install torchvision==0.4.2
# Packages from AutoNLP
# More info: https://hub.docker.com/r/wahaha909/autonlp
RUN pip install jieba==0.39
RUN pip install nltk==3.4.4
RUN pip install spacy==2.1.6
RUN pip install gensim==3.8.0
RUN pip install polyglot==16.7.4
RUN pip install transformers==2.2.0
# Embedding weights: fastText dim=300 Chinese and English, BERT
# In order to make following commands work, run these commands (in docker/)
# first to download corresponding weights files:
# curl -C - -O https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.zh.300.vec.gz
# curl -C - -O https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.en.300.vec.gz
# curl -C - -O https://storage.googleapis.com/bert_models/2019_05_30/wwm_uncased_L-24_H-1024_A-16.zip
RUN mkdir -p /app && mkdir /app/embedding && cd /app/embedding
COPY cc.zh.300.vec.gz /app/embedding/
COPY cc.en.300.vec.gz /app/embedding/
COPY wwm_uncased_L-24_H-1024_A-16.zip /app/embedding/
# Packages from AutoSpeech
RUN apt-get update && apt-get -y install libsndfile1
# Packages to be activated: Following packages are demanded by one of the
# participants. If another participant asks to install one of these packages,
# we'll uncomment corresponding line and rebuild this image.
RUN pip install tensorflow_hub==0.7.0
# RUN pip install fastai
# RUN pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/cuda/10.0 nvidia-dali
WORKDIR /app/codalab
ADD VERSION .