MCPcopy Index your code
hub / github.com/CalciferZh/SMPL

github.com/CalciferZh/SMPL @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
15 symbols 38 edges 4 files 12 documented · 80%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SMPL

Numpy and Tensorflow implementation of SMPL model. For any questions, feel free to contact me.

Overview

I wrote this because the author-provided implementation was mainly based on chumpy in Python 2, which is kind of unpopular. Meanwhile, the official one cannot run on GPU.

This numpy version is faster (since some computation is re-wrote in a vectorized manner) and easier to understand (hope so), and the tensorflow version can run on GPU.

For more details about SMPL model, see SMPL.

Usage

  1. Download the model file here.
  2. Run python preprocess.py /PATH/TO/THE/DOWNLOADED/MODEL to preprocess the official model. preprocess.py will create a new file model.pkl. smpl_np.py and smpl_tf.py both rely on model.pkl. NOTE: the official pickle model contains chumpy object, so prerocess.py requires chumpy to extract official model. You need to modify chumpy's cource code a little bit to make it compatible to preprocess.py (and Python 3).
  3. Run python smpl_np.py or python smpl_tf.py to see the example.

Core symbols most depended-on inside this repo

with_zeros
called by 2
smpl_tf.py
set_params
called by 2
smpl_np.py
update
called by 2
smpl_np.py
with_zeros
called by 2
smpl_np.py
rodrigues
called by 1
smpl_tf.py
pack
called by 1
smpl_tf.py
smpl_model
called by 1
smpl_tf.py
rodrigues
called by 1
smpl_np.py

Shape

Function 7
Method 7
Class 1

Languages

Python100%

Modules by API surface

smpl_np.py8 symbols
smpl_tf.py4 symbols
test.py3 symbols

For agents

$ claude mcp add SMPL \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page