Spaces:
Sleeping
Sleeping
initial app test
Browse files- app.py +2 -3
- checkpoint/deco_best.pth +3 -0
- data/J_regressor_extra.npy +3 -0
- data/conversions/smpl_to_smplx.pkl +3 -0
- data/conversions/smplx_to_smpl.pkl +3 -0
- data/smpl/smpl_neutral_geodesic_dist.npy +3 -0
- data/smpl/smpl_neutral_tpose.ply +0 -0
- data/smpl/smplpix_vertex_colors.npy +3 -0
- data/smpl_partSegmentation_mapping.pkl +3 -0
- data/smpl_vert_segmentation.json +0 -0
- data/smplx/smplx_neutral_tpose.ply +0 -0
- data/smplx_vert_segmentation.json +0 -0
- data/weights/pose_hrnet_w32_256x192.pth +3 -0
app.py
CHANGED
@@ -9,7 +9,6 @@ import sys
|
|
9 |
print(os.path.abspath(__file__))
|
10 |
os.system('pip install gradio==3.47.1')
|
11 |
os.system('pip install networkx')
|
12 |
-
os.system('sh fetch_data.sh')
|
13 |
|
14 |
import gradio as gr
|
15 |
|
@@ -137,13 +136,13 @@ def create_scene(mesh, img, focal_length=500, camera_center=250, img_res=500):
|
|
137 |
IMG.thumbnail((3000, 3000))
|
138 |
return IMG
|
139 |
|
140 |
-
def main(
|
141 |
if os.path.isdir(img_src):
|
142 |
images = glob.iglob(img_src + '/*', recursive=True)
|
143 |
else:
|
144 |
images = [img_src]
|
145 |
|
146 |
-
deco_model = initiate_model(
|
147 |
|
148 |
smpl_path = os.path.join(constants.SMPL_MODEL_DIR, 'smpl_neutral_tpose.ply')
|
149 |
|
|
|
9 |
print(os.path.abspath(__file__))
|
10 |
os.system('pip install gradio==3.47.1')
|
11 |
os.system('pip install networkx')
|
|
|
12 |
|
13 |
import gradio as gr
|
14 |
|
|
|
136 |
IMG.thumbnail((3000, 3000))
|
137 |
return IMG
|
138 |
|
139 |
+
def main(img_src, out_dir, model_path='checkpoint/deco_best.pth', mesh_colour=[130, 130, 130, 255], annot_colour=[0, 255, 0, 255]):
|
140 |
if os.path.isdir(img_src):
|
141 |
images = glob.iglob(img_src + '/*', recursive=True)
|
142 |
else:
|
143 |
images = [img_src]
|
144 |
|
145 |
+
deco_model = initiate_model(model_path)
|
146 |
|
147 |
smpl_path = os.path.join(constants.SMPL_MODEL_DIR, 'smpl_neutral_tpose.ply')
|
148 |
|
checkpoint/deco_best.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d1502292154e446457131dc9915bac15bf530b3e973c226f748417be50601bc
|
3 |
+
size 1560039945
|
data/J_regressor_extra.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc968ea4f9855571e82f90203280836b01f13ee42a8e1b89d8d580b801242a89
|
3 |
+
size 496160
|
data/conversions/smpl_to_smplx.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e8917053cc980c1218453a563378c9e7d277e71c49def3a26ab72afb19c7b994
|
3 |
+
size 578366660
|
data/conversions/smplx_to_smpl.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:685d935cdf65c44534ec3effdb7753a5886bebd7a1c8f295d55e16e4d1be64fb
|
3 |
+
size 578019257
|
data/smpl/smpl_neutral_geodesic_dist.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b564cd34bf227e41ecdb0186ed5355cb9c4713eb69176bfa80a85bc8edd2bd05
|
3 |
+
size 379776928
|
data/smpl/smpl_neutral_tpose.ply
ADDED
Binary file (262 kB). View file
|
|
data/smpl/smplpix_vertex_colors.npy
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a02dd70b033c06f62413a03983476a74c03194edcf204ea0bd20ac650885ab28
|
3 |
+
size 220608
|
data/smpl_partSegmentation_mapping.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f7f8f5e381b7a92f40964315858492fe0d63e4a27789882fada17a144da800a
|
3 |
+
size 56220
|
data/smpl_vert_segmentation.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/smplx/smplx_neutral_tpose.ply
ADDED
Binary file (398 kB). View file
|
|
data/smplx_vert_segmentation.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/weights/pose_hrnet_w32_256x192.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19bc083708bb8d873211e50d85d56344c10290c6e8b564c813fdde09645c4c1c
|
3 |
+
size 114721619
|