Spaces:
mucusz
/
Runtime error

Yuliang commited on
Commit
a6610ba
1 Parent(s): 4d0bd60

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -6
  2. README.md +1 -2
Dockerfile CHANGED
@@ -3,6 +3,9 @@ FROM nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
 
 
 
6
  libgl1 \
7
  freeglut3-dev \
8
  unzip \
@@ -20,6 +23,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
20
  libeigen3-dev \
21
  python3.8 \
22
  python3-pip \
 
23
  nvidia-cuda-toolkit \
24
  opencv-python-headless \
25
  && rm -rf /var/lib/apt/lists/*
@@ -46,6 +50,7 @@ ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH}
46
 
47
  # Set home to the user's home directory
48
  ENV HOME=/home/user \
 
49
  PYTHONPATH=$HOME/app \
50
  PYTHONUNBUFFERED=1 \
51
  GRADIO_ALLOW_FLAGGING=never \
@@ -63,14 +68,14 @@ RUN cd /tmp && pip install -r requirements.txt
63
  RUN pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu116_pyt1130/download.html
64
  RUN python -c "import torch; print(torch.version.cuda)"
65
 
66
- # Set the working directory to the user's home directory
67
- WORKDIR $HOME
68
-
69
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
70
- COPY --chown=user . $HOME
71
  RUN chmod 777 $HOME
72
-
73
  ENV TRANSFORMERS_CACHE=/tmp
74
  ENV MPLCONFIGDIR=/tmp
75
 
 
 
 
 
 
 
76
  CMD ["python", "app.py"]
 
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6
+ curl \
7
+ git \
8
+ wget \
9
  libgl1 \
10
  freeglut3-dev \
11
  unzip \
 
23
  libeigen3-dev \
24
  python3.8 \
25
  python3-pip \
26
+ python-is-python3 \
27
  nvidia-cuda-toolkit \
28
  opencv-python-headless \
29
  && rm -rf /var/lib/apt/lists/*
 
50
 
51
  # Set home to the user's home directory
52
  ENV HOME=/home/user \
53
+ PATH=/home/user/.local/bin:$PATH \
54
  PYTHONPATH=$HOME/app \
55
  PYTHONUNBUFFERED=1 \
56
  GRADIO_ALLOW_FLAGGING=never \
 
68
  RUN pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu116_pyt1130/download.html
69
  RUN python -c "import torch; print(torch.version.cuda)"
70
 
 
 
 
 
 
71
  RUN chmod 777 $HOME
 
72
  ENV TRANSFORMERS_CACHE=/tmp
73
  ENV MPLCONFIGDIR=/tmp
74
 
75
+ # Set the working directory to the user's home directory
76
+ WORKDIR $HOME/app
77
+
78
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
79
+ COPY --chown=user . $HOME/app
80
+
81
  CMD ["python", "app.py"]
README.md CHANGED
@@ -1,11 +1,10 @@
1
  ---
2
- title: Unconstrained & Detailed Clothed Human Digitization (ECON + ControlNet)
3
  metaTitle: ECON-Avatarify from Photo
4
  emoji: 🤼
5
  colorFrom: green
6
  colorTo: pink
7
  sdk: docker
8
- app_file: app.py
9
  pinned: true
10
  ---
11
 
 
1
  ---
2
+ title: ECON - Clothed Human Digitization
3
  metaTitle: ECON-Avatarify from Photo
4
  emoji: 🤼
5
  colorFrom: green
6
  colorTo: pink
7
  sdk: docker
 
8
  pinned: true
9
  ---
10