This repository is a focused fork of SURREAL for exporting posed human walking meshes. The intended use is robotics data augmentation: generate one 3D human mesh per walking animation frame, then place those meshes into a separate scene or simulator.
The primary workflow is mesh-only. It does not require the original RGB/depth rendering pipeline, LSUN backgrounds, ffmpeg, OpenEXR, Torch training code, or pretrained SURREAL models.
The export path in datageneration/export_obj_frames.py loads SURREAL SMPL
motion data and writes:
- one OBJ file per animation frame, for example
frame_000000.obj metadata.jsondescribing the source frames, axes, units, topology, and texture choices- optional
material.mtland copied clothing texture files
Meshes are exported in meters, pelvis-centered in XY, grounded per frame, with
target axes +X forward, +Y left, and +Z up.
Only the assets required for mesh export need to be installed.
Download the licensed SMPL for MAYA models from the SMPL website after accepting
their license terms. Place these files under datageneration/smpl_data/:
datageneration/smpl_data/
basicModel_f_lbs_10_207_0_v1.0.2.fbx
basicModel_m_lbs_10_207_0_v1.0.2.fbx
Download the SURREAL SMPL data after accepting the SURREAL license terms. The mesh export script needs:
datageneration/smpl_data/
smpl_data.npz
This file contains the CMU MoCap-derived SMPL pose and translation sequences used by the exporter.
If textured OBJ output is desired, also place the SURREAL texture data under:
datageneration/smpl_data/textures/
Use --no-texture when exporting geometry only.
Install Blender. The helper script uses BLENDER_PATH if it is set; otherwise
it falls back to the local path currently encoded in
datageneration/export_obj_frames.sh.
Example:
export BLENDER_PATH=/path/to/blenderSee datageneration/README.md for the full export guide.
Minimal example:
cd datageneration
./export_obj_frames.sh --idx 02_02 --gender female --frames 30 --stepsize 4 --out ../outputs/obj_framesWhen choosing a walking sequence, start with
datageneration/misc/walking_sequences.txt. It lists the walking sequences that
have been checked for this fork. datageneration/misc/sequence_idx_map lists
broader sequence names available in the SURREAL motion data.
This fork is based on:
Gul Varol, Javier Romero, Xavier Martin, Naureen Mahmood, Michael J. Black, Ivan Laptev, and Cordelia Schmid, Learning from Synthetic Humans, CVPR 2017.
Original resources:
If you use this code or the SURREAL assets, please cite the original work:
@INPROCEEDINGS{varol17_surreal,
title = {Learning from Synthetic Humans},
author = {Varol, G{\"u}l and Romero, Javier and Martin, Xavier and Mahmood, Naureen and Black, Michael J. and Laptev, Ivan and Schmid, Cordelia},
booktitle = {CVPR},
year = {2017}
}Check the repository license in LICENSE.md and the SURREAL/SMPL asset license terms before downloading, using, or redistributing code, models, or data.