Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
zhan-xu committed Sep 23, 2020
1 parent 30f39e7 commit 118ca4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pip install torch-geometric
```

## Quick start
We provide a script for quick start. First download our trained models from[here](https://umass.box.com/s/l7dxfayrubf5qzxcyg7can715xnislwm).
We provide a script for quick start. First download our trained models from [here](https://umass.box.com/s/l7dxfayrubf5qzxcyg7can715xnislwm).
Put the checkpoints folder into the project folder.

Check and run quick_start.py. We provide some examples in this script.
Expand All @@ -35,7 +35,11 @@ Generally you will get the results similar to the ones shown below:

![results figure](quick_start/quick_start.png)

The predicted rig is saved as *_rig.txt. You can combine the OBJ file and *_rig.txt into FBX format by
If you want to try your own models, remember to simplify the meshes so that
the remeshed ones have vertices between 1K to 5K. I use quadratic edge collapse in MeshLap for this.
Name the simplified meshed as *_remesh.obj.

The predicted rigs are saved as *_rig.txt. You can combine the OBJ file and *_rig.txt into FBX format by
running maya_save_fbx.py provided by us in Maya using mayapy.

## Data
Expand Down
1 change: 1 addition & 0 deletions quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def create_single_data(mesh_filaname):
:return: wrapped data, voxelized mesh, and geodesic distance matrix of all vertices
"""
mesh = o3d.io.read_triangle_mesh(mesh_filaname)
mesh.compute_triangle_normals()
mesh_v = np.asarray(mesh.vertices)
mesh_vn = np.asarray(mesh.vertex_normals)
mesh_f = np.asarray(mesh.triangles)
Expand Down

0 comments on commit 118ca4f

Please sign in to comment.