This repo is a refined version of the original ContourCraft Repo. This code is used to generate simulation results in ChatGarment. It has the following advantages:
- Allows simulation from arbitrary body mesh and starting pose.
- Adds blender rendering support.
- Includes codes to evaluate ChatGarment results on Dress4D and CloSE datasets.
Follow ContourCraft Repo to install the environment and download data required for running ContourCraft.
Here we give example codes to run inference using the example data provided in this link. Unpack them to the assets folder.
python simulation_example.py # run simulation and save resultspython get_smplx_mesh.py # get smplx mesh
python get_mesh_from_simulation.py # get garment mesh# Rendering a single frame from extracted meshes
/is/cluster/fast/sbian/data/blender-3.6.14-linux-x64/blender --background --python blender_rendering.py -- --obj_dir exp/example_simulation/motion_0 --frameid 60# Rendering all frames from extracted meshes
python blender_rendering_wrap.pyThese scripts are used to generate ChatGarment Dataset.
These scripts are used to evaluate the outputs of ChatGarment and other methods.