Long Trinh-Quang commited on
Commit
59ae2b9
·
1 Parent(s): 7851ad8

update requirement basicsr

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -39
  2. requirements.txt +7 -4
Dockerfile CHANGED
@@ -29,54 +29,23 @@ RUN apt-get update && \
29
  apt-get clean && \
30
  rm -rf /var/lib/apt/lists/*
31
 
32
- # RUN useradd -m -u 1000 user
33
- # USER user
34
- # ENV HOME=/home/user \
35
- # PATH=/home/user/.local/bin:${PATH}
36
- # WORKDIR ${HOME}/app
37
-
38
- # RUN curl https://pyenv.run | bash
39
- # ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
40
- # ENV PYTHON_VERSION=3.10.18
41
- # RUN pyenv install ${PYTHON_VERSION} && \
42
- # pyenv global ${PYTHON_VERSION} && \
43
- # pyenv rehash && \
44
- # pip install --no-cache-dir -U pip setuptools wheel
45
-
46
- # RUN pip install --user --no-cache-dir -U torch==2.4.0+cu124 torchaudio==2.4.0+cu124 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu124
47
- # RUN pip install --user --no-cache-dir -U f5_tts==1.1.9
48
- # COPY --chown=1000 requirements_f5tts.txt /tmp/requirements_f5tts.txt
49
- # RUN pip install --user --no-cache-dir -U -r /tmp/requirements_f5tts.txt
50
- # COPY --chown=1000 requirements.txt /tmp/requirements.txt
51
- # RUN pip install --user --no-cache-dir -U -r /tmp/requirements.txt
52
-
53
- # COPY --chown=1000 . ${HOME}/app
54
- # RUN ls -a
55
- # ENV PYTHONPATH=${HOME}/app \
56
- # PYTHONUNBUFFERED=1 \
57
- # GRADIO_ALLOW_FLAGGING=never \
58
- # GRADIO_NUM_PORTS=1 \
59
- # GRADIO_SERVER_NAME=0.0.0.0 \
60
- # GRADIO_THEME=huggingface \
61
- # SYSTEM=spaces
62
- # CMD ["python", "app.py"]
63
-
64
  RUN useradd -m -u 1000 user
65
  USER user
66
  ENV HOME=/home/user \
67
- PATH=/home/user/.local/bin:${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
68
  WORKDIR ${HOME}/app
69
 
70
  RUN curl https://pyenv.run | bash
71
- ENV PYTHON_VERSION=3.10.18
 
72
  RUN pyenv install ${PYTHON_VERSION} && \
73
  pyenv global ${PYTHON_VERSION} && \
74
  pyenv rehash && \
75
- pyenv exec pip install --no-cache-dir -U pip setuptools wheel && \
76
- pyenv exec pip install --no-cache-dir -U torch==2.4.0+cu124 torchaudio==2.4.0+cu124 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu124 && \
77
- pyenv exec pip install --no-cache-dir -U f5_tts==1.1.9 && \
78
- # pyenv exec pip install --no-cache-dir -U -r /tmp/requirements_f5tts.txt && \
79
- pyenv exec pip install --no-cache-dir -U -r /tmp/requirements.txt
80
 
81
  COPY --chown=1000 . ${HOME}/app
82
  RUN ls -a
 
29
  apt-get clean && \
30
  rm -rf /var/lib/apt/lists/*
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  RUN useradd -m -u 1000 user
33
  USER user
34
  ENV HOME=/home/user \
35
+ PATH=/home/user/.local/bin:${PATH}
36
  WORKDIR ${HOME}/app
37
 
38
  RUN curl https://pyenv.run | bash
39
+ ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
40
+ ENV PYTHON_VERSION=3.10.9
41
  RUN pyenv install ${PYTHON_VERSION} && \
42
  pyenv global ${PYTHON_VERSION} && \
43
  pyenv rehash && \
44
+ pip install --no-cache-dir -U pip setuptools wheel
45
+
46
+ RUN pip install --no-cache-dir -U torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0
47
+ COPY --chown=1000 requirements.txt /tmp/requirements.txt
48
+ RUN pip install --no-cache-dir -U -r /tmp/requirements.txt
49
 
50
  COPY --chown=1000 . ${HOME}/app
51
  RUN ls -a
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
- # torch==2.4.0
2
- # torchaudio==2.4.0
3
- # torchvision==0.19.0
4
 
5
  face_alignment==1.3.0
6
  imageio==2.19.3
@@ -16,7 +16,7 @@ yacs==0.1.8
16
  pyyaml
17
  joblib==1.1.0
18
  scikit-image==0.19.3
19
- basicsr==1.4.2
20
  facexlib
21
  dlib-bin
22
  gfpgan
@@ -44,5 +44,8 @@ transformers_stream_generator
44
  vocos
45
  wandb
46
  x_transformers>=1.31.14
 
47
 
48
  spaces
 
 
 
1
+ torch==2.4.0
2
+ torchaudio==2.4.0
3
+ torchvision==0.19.0
4
 
5
  face_alignment==1.3.0
6
  imageio==2.19.3
 
16
  pyyaml
17
  joblib==1.1.0
18
  scikit-image==0.19.3
19
+ basicsr @ git+https://github.com/XPixelGroup/BasicSR.git@8d56e3a045f9fb3e1d8872f92ee4a4f07f886b0a
20
  facexlib
21
  dlib-bin
22
  gfpgan
 
44
  vocos
45
  wandb
46
  x_transformers>=1.31.14
47
+ f5-tts
48
 
49
  spaces
50
+ soxr
51
+ ffmpeg