Skip to content

killf/smpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smpl

基于numpy的smpl算法。

import numpy as np
import open3d as o3d
from smpl import SMPL, write_obj

model = SMPL("../models/basicmodel_m_lbs_10_207_0_v1.0.0.pkl")

pose = (np.random.rand(24, 3) - 0.5) * .4
betas = (np.random.rand(10) - 0.5) * .06
vertices, _ = model(betas, pose)
write_obj("test.obj", vertices, model.faces)

pcd = o3d.io.read_triangle_mesh("test.obj")
o3d.visualization.draw_geometries([pcd])

body

About

基于numpy的smpl算法

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages