jasongzy commited on
Commit
2924967
Β·
1 Parent(s): e1e53eb

πŸŽ‰ init

Browse files
Files changed (2) hide show
  1. Dockerfile +33 -0
  2. README.md +5 -3
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ RUN apt-get update -y && \
4
+ apt-get install -y libegl1-mesa-dev libgl1-mesa-dev libxi6 libxkbcommon-x11-0 libxfixes3 && \
5
+ apt-get clean && \
6
+ apt-get autoremove
7
+
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ WORKDIR $HOME
14
+
15
+ RUN git clone https://github.com/jasongzy/Puppeteer --recursive app
16
+
17
+ WORKDIR $HOME/app
18
+
19
+ RUN python -m pip install --upgrade pip && \
20
+ pip install torch==2.1.1 torchvision==0.16.1 --index-url https://download.pytorch.org/whl/cu118 && \
21
+ pip install cython==0.29.36 && \
22
+ pip install tetgen==0.5.2 --no-build-isolation && \
23
+ pip install -r requirements.txt && \
24
+ if python -c "import torch; exit(0 if torch.cuda.is_available() else 1)" 2>/dev/null; then \
25
+ pip install flash-attn==2.6.3 --no-build-isolation --no-cache-dir; \
26
+ fi && \
27
+ pip cache purge
28
+
29
+ # RUN python skeleton/download.py && \
30
+ # python skinning/download.py && \
31
+ # python animation/download.py
32
+
33
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,11 +1,13 @@
1
  ---
2
  title: Puppeteer
3
- emoji: 🐒
4
- colorFrom: blue
5
- colorTo: purple
6
  sdk: docker
7
  pinned: false
8
  short_description: Rig and Animate Your 3D Models
 
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Puppeteer
3
+ emoji: πŸ€–
4
+ colorFrom: gray
5
+ colorTo: red
6
  sdk: docker
7
  pinned: false
8
  short_description: Rig and Animate Your 3D Models
9
+ models:
10
+ - Seed3D/Puppeteer
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference