jasongzy commited on
Commit
ca2b27f
Β·
1 Parent(s): 80a15f1

πŸŽ‰ init

Browse files
Files changed (2) hide show
  1. Dockerfile +37 -0
  2. README.md +4 -6
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ RUN apt-get update -y && \
4
+ apt-get install -y libegl1-mesa-dev libgl1-mesa-dev libxi6 libxkbcommon-x11-0 git-lfs && \
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
+ COPY --chown=user . .
15
+
16
+ RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
17
+ git config --global url.https://$(cat /run/secrets/GH_TOKEN)@github.com/.insteadOf https://github.com/ && \
18
+ git clone --recursive https://github.com/jasongzy/3DShape2VecSet app
19
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
20
+ git config --global url.https://jasongzy:$(cat /run/secrets/HF_TOKEN)@huggingface.co/.insteadOf https://huggingface.co/ && \
21
+ git lfs install && \
22
+ git clone https://huggingface.co/jasongzy/Make-It-Animatable model && \
23
+ GIT_LFS_SKIP_SMUDGE=1 git clone --recursive https://huggingface.co/datasets/jasongzy/Mixamo && \
24
+ cd Mixamo && \
25
+ git lfs pull -I animation && \
26
+ git lfs pull -I bones.fbx && \
27
+ git lfs pull -I bones_vroid.fbx
28
+
29
+ WORKDIR $HOME/app
30
+
31
+ RUN mv ../model/data . && \
32
+ mv ../model/output . && \
33
+ rm -r ../model && \
34
+ python -m pip install --upgrade pip && \
35
+ pip install -r requirements-demo.txt
36
+
37
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,14 +1,12 @@
1
  ---
2
  title: Make It Animatable
3
- emoji: πŸƒ
4
  colorFrom: yellow
5
  colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.6.0
8
- app_file: app.py
9
  pinned: false
10
- license: apache-2.0
11
- short_description: Authoring Animation-Ready 3D Characters
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Make It Animatable
3
+ emoji: πŸ’ƒ
4
  colorFrom: yellow
5
  colorTo: blue
6
+ sdk: docker
 
 
7
  pinned: false
8
+ license: cc-by-nc-4.0
9
+ short_description: Authoring Animation-Ready 3D Characters with One Click
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference