imabackstabber commited on
Commit
d48f0a2
·
1 Parent(s): eb53160

upload mesh data

Browse files
main/data/J_regressor_extra.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40dfaa71fcc7eed6966a6ed046311b7e8ea0eb9a5172b298e3df6fc4b6ec0eb0
3
+ size 771808
main/data/J_regressor_h36m_correct.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1835d64133d5f66bd80a814ab1c1dc0900ef01950f568320acf5f9390c1f2c8c
3
+ size 937168
main/data/J_regressor_lsp.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e19f22d01c5f7488e71feb2324b72c5e068136ccaad6a087e7dcfcf463a384d
3
+ size 385968
main/data/README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ###### *Note: This file is provided by [MeshTransformer/metro/modeling/data/README.md](https://github.com/microsoft/MeshTransformer/tree/main/metro/modeling/data)*
2
+
3
+ # Extra data
4
+ Adapted from open source project [GraphCMR](https://github.com/nkolot/GraphCMR/) and [Pose2Mesh](https://github.com/hongsukchoi/Pose2Mesh_RELEASE)
5
+
6
+ Our code requires additional data to run smoothly.
7
+
8
+ ### J_regressor_extra.npy
9
+ Joints regressor for joints or landmarks that are not included in the standard set of SMPL joints.
10
+
11
+ ### J_regressor_h36m_correct.npy
12
+ Joints regressor reflecting the Human3.6M joints.
13
+
14
+ ### mesh_downsampling.npz
15
+ Extra file with precomputed downsampling for the SMPL body mesh.
16
+
17
+ ### mano_downsampling.npz
18
+ Extra file with precomputed downsampling for the MANO hand mesh.
19
+
20
+ ### basicModel_neutral_lbs_10_207_0_v1.0.0.pkl
21
+ SMPL neutral model. Please visit the official website to download the file [http://smplify.is.tue.mpg.de/](http://smplify.is.tue.mpg.de/)
22
+
23
+ ### basicModel_m_lbs_10_207_0_v1.0.0.pkl
24
+ SMPL male model. Please visit the official website to download the file [https://smpl.is.tue.mpg.de/](https://smpl.is.tue.mpg.de/)
25
+
26
+ ### basicModel_f_lbs_10_207_0_v1.0.0.pkl
27
+ SMPL female model. Please visit the official website to download the file [https://smpl.is.tue.mpg.de/](https://smpl.is.tue.mpg.de/)
28
+
29
+ ### MANO_RIGHT.pkl
30
+ MANO hand model. Please visit the official website to download the file [https://mano.is.tue.mpg.de/](https://mano.is.tue.mpg.de/)
31
+
main/data/__pycache__/config.cpython-39.pyc ADDED
Binary file (2.11 kB). View file
 
main/data/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98e65c74ad9b998783132f00880d1025a8d64b158e040e6ef13a557e5098bc42
3
+ size 39001280
main/data/config.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ----------------------------------------------------------------------------------------------
2
+ # METRO (https://github.com/microsoft/MeshTransformer)
3
+ # Copyright (c) Microsoft Corporation. All Rights Reserved [see https://github.com/microsoft/MeshTransformer/blob/main/LICENSE for details]
4
+ # Licensed under the MIT license.
5
+ # ----------------------------------------------------------------------------------------------
6
+ """
7
+ This file contains definitions of useful data stuctures and the paths
8
+ for the datasets and data files necessary to run the code.
9
+
10
+ Adapted from opensource project GraphCMR (https://github.com/nkolot/GraphCMR/) and Pose2Mesh (https://github.com/hongsukchoi/Pose2Mesh_RELEASE)
11
+
12
+ """
13
+
14
+ import os
15
+ import sys
16
+ import os.path as osp
17
+
18
+ CUR_DIR = osp.dirname(os.path.abspath(__file__))
19
+ folder_path = osp.join(CUR_DIR, '../')
20
+ JOINT_REGRESSOR_TRAIN_EXTRA = folder_path + 'data/J_regressor_extra.npy'
21
+ JOINT_REGRESSOR_H36M_correct = folder_path + 'data/J_regressor_h36m_correct.npy'
22
+ SMPL_FILE = folder_path + 'data/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl'
23
+ SMPL_Male = folder_path + 'data/basicModel_m_lbs_10_207_0_v1.0.0.pkl'
24
+ SMPL_Female = folder_path + 'data/basicModel_f_lbs_10_207_0_v1.0.0.pkl'
25
+ SMPL_sampling_matrix = folder_path + 'data/mesh_downsampling.npz'
26
+ MANO_FILE = folder_path + 'data/MANO_RIGHT.pkl'
27
+ MANO_sampling_matrix = folder_path + 'data/mano_downsampling.npz'
28
+
29
+ JOINTS_IDX = [8, 5, 29, 30, 4, 7, 21, 19, 17, 16, 18, 20, 31, 32, 33, 34, 35, 36, 37, 24, 26, 25, 28, 27]
30
+
31
+
32
+ """
33
+ We follow the body joint definition, loss functions, and evaluation metrics from
34
+ open source project GraphCMR (https://github.com/nkolot/GraphCMR/)
35
+
36
+ Each dataset uses different sets of joints.
37
+ We use a superset of 24 joints such that we include all joints from every dataset.
38
+ If a dataset doesn't provide annotations for a specific joint, we simply ignore it.
39
+ The joints used here are:
40
+ """
41
+ J24_NAME = ('R_Ankle', 'R_Knee', 'R_Hip', 'L_Hip', 'L_Knee', 'L_Ankle', 'R_Wrist', 'R_Elbow', 'R_Shoulder', 'L_Shoulder',
42
+ 'L_Elbow','L_Wrist','Neck','Top_of_Head','Pelvis','Thorax','Spine','Jaw','Head','Nose','L_Eye','R_Eye','L_Ear','R_Ear')
43
+ H36M_J17_NAME = ( 'Pelvis', 'R_Hip', 'R_Knee', 'R_Ankle', 'L_Hip', 'L_Knee', 'L_Ankle', 'Torso', 'Neck', 'Nose', 'Head',
44
+ 'L_Shoulder', 'L_Elbow', 'L_Wrist', 'R_Shoulder', 'R_Elbow', 'R_Wrist')
45
+ J24_TO_J14 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 18]
46
+ H36M_J17_TO_J14 = [3, 2, 1, 4, 5, 6, 16, 15, 14, 11, 12, 13, 8, 10]
47
+ J24_TO_COCO_J17 = [19, 20, 21, 22, 23, 9, 8, 10, 7, 11, 6, 3, 2, 4, 1, 5, 0]
48
+
49
+ """
50
+ We follow the hand joint definition and mesh topology from
51
+ open source project Manopth (https://github.com/hassony2/manopth)
52
+
53
+ The hand joints used here are:
54
+ """
55
+ J_NAME = ('Wrist', 'Thumb_1', 'Thumb_2', 'Thumb_3', 'Thumb_4', 'Index_1', 'Index_2', 'Index_3', 'Index_4', 'Middle_1',
56
+ 'Middle_2', 'Middle_3', 'Middle_4', 'Ring_1', 'Ring_2', 'Ring_3', 'Ring_4', 'Pinky_1', 'Pinky_2', 'Pinky_3', 'Pinky_4')
57
+ ROOT_INDEX = 0
main/data/mano_195_adjmat_indices.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f99d80a96bbced27df6b6dee4fbdc01ee326e7e2691a79ca596ad03f57db8a6a
3
+ size 21639
main/data/mano_195_adjmat_size.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd137f9f2b1b8827251934784326a5b05f1415333101c13c849ed6b5eba6c3a4
3
+ size 173
main/data/mano_195_adjmat_values.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29945bf3dce6ce679fc6b35ed9007aa531f68e6e2e44a59d5ab69a643862f8f9
3
+ size 5663
main/data/mano_downsampling.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db2b23b0ede7c34039f1d8960e2e839552e0f58d4b34a8612b4065d8a47f9c80
3
+ size 176509
main/data/mesh_downsampling.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5683b656d9acd7f1558db832527beb0cc6b3b45388cf41a7979dab52e2c57477
3
+ size 1720359
main/data/smpl_1723_edges.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22cf912667869c03500834eed294bb8a02fb1729b044454b7f0d2abb6c4bb43e
3
+ size 41432
main/data/smpl_1723_faces.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9e4192f0e657d3005e2369af6ba44412b057cd49682106e8a21b560e63d578d
3
+ size 41540
main/data/smpl_431_adjmat_indices.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cd71fd5e0ed2c55b909fad982a80fe3a0ddaf6e203721e030c9ea0246891f73
3
+ size 48423
main/data/smpl_431_adjmat_size.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2b87183ef2493228e014b5e725f59755a2c75f034684f7cca72c34f7a9d0ae0
3
+ size 175
main/data/smpl_431_adjmat_values.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d098729e4bc1bdc21545ff99cbe0560c44210a38ff43db7b2858dbfa03e3073
3
+ size 12359