Skip to content

Commit fd024a3

Browse files
committed
✍️ move dependencies to requirements.txt
1 parent 0416c02 commit fd024a3

File tree

4 files changed

+11
-24
lines changed

4 files changed

+11
-24
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM tensorflow/tensorflow:2.3.0-gpu
1+
FROM tensorflow/tensorflow:2.3.2-gpu
22

33
RUN apt-get update \
4-
&& apt-get upgrade -y \
5-
&& apt-get install -y \
6-
&& apt-get -y install apt-utils gcc libpq-dev libsndfile-dev git build-essential cmake screen
4+
&& apt-get upgrade -y \
5+
&& apt-get install -y \
6+
&& apt-get -y install apt-utils gcc libpq-dev libsndfile-dev git build-essential cmake screen
77

88
# Clear cache
99
RUN apt clean && apt-get clean
@@ -17,8 +17,8 @@ COPY scripts /scripts
1717
ARG install_rnnt_loss=true
1818
ARG using_gpu=true
1919
RUN if [ "$install_rnnt_loss" = "true" ] ; \
20-
then if [ "$using_gpu" = "true" ] ; then export CUDA_HOME=/usr/local/cuda ; else echo 'Using CPU' ; fi \
21-
&& ./scripts/install_rnnt_loss.sh \
22-
else echo 'Using pure TensorFlow'; fi
20+
then if [ "$using_gpu" = "true" ] ; then export CUDA_HOME=/usr/local/cuda ; else echo 'Using CPU' ; fi \
21+
&& ./scripts/install_rnnt_loss.sh \
22+
else echo 'Using pure TensorFlow'; fi
2323

2424
RUN echo "export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> /root/.bashrc

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scipy
44
sklearn
55
pandas
66
tensorflow-datasets>=4.2.0
7-
tensorflow-addons>=0.10.0
7+
tensorflow-addons>=0.11.1
88
tensorflow-io>=0.16.0
99
setuptools>=47.1.1
1010
librosa>=0.8.0

setup.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,8 @@
1717
with open("README.md", "r") as fh:
1818
long_description = fh.read()
1919

20-
requirements = [
21-
"tensorflow-datasets>=4.2.0",
22-
"tensorflow-addons>=0.10.0",
23-
"tensorflow-io>=0.16.0",
24-
"setuptools>=47.1.1",
25-
"librosa>=0.8.0",
26-
"soundfile>=0.10.3",
27-
"PyYAML>=5.3.1",
28-
"matplotlib>=3.2.1",
29-
"sox>=1.4.1",
30-
"tqdm>=4.54.1",
31-
"colorama>=0.4.4",
32-
"nlpaug>=1.1.1",
33-
"nltk>=3.5",
34-
"sentencepiece>=0.1.94"
35-
]
20+
with open("requirements.txt", "r") as fr:
21+
requirements = fr.read().splitlines()
3622

3723
setuptools.setup(
3824
name="TensorFlowASR",

0 commit comments

Comments
 (0)