PhysX-3D

ziangcao0312更新放缓

从图像生成带物理属性的三维资产,让模型产出的 3D 物体不仅外形逼真,还具备质量、材质等可供仿真使用的物理参数。

PhysX: Physical-Grounded 3D Asset Generation (NeurIPS 2025, Spotlight)

暂无版本398star21fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone --recurse-submodules https://github.com/ziangcao0312/PhysX-3D.git
cd PhysX-3D
. ./setup.sh --new-env --basic --xformers --flash-attn --diffoctreerast --spconv --mipgaussian --kaolin --nvdiffrast
硬件要求按 README 说明

README 未说明显存与 GPU 型号要求;安装脚本含 xformers、flash-attn、spconv、kaolin、nvdiffrast 等 CUDA 相关依赖,实际需 NVIDIA GPU 环境

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

从图像生成带物理属性(尺度、密度、可供性、运动学)的三维资产,面向仿真就绪建模

从图像生成带物理属性的三维资产,让模型产出的 3D 物体不仅外形逼真,还具备质量、材质等可供仿真使用的物理参数。

核心能力

  • 提供 PhysXNet 与 PhysXNet-XL 物理标注数据集
  • 用 VAE 训练结构化潜变量编码解码网格与物理属性
  • 用 DiT 扩散模型做图像条件的三维物理资产生成
  • 提供 JSON 标注转 URDF 的脚本 urdf_gen.py
  • 按尺度、密度/可供性/描述图、运动学分别给出评测指标

容易踩的坑

clone 必须带 --recurse-submodules,否则子模块缺失;训练需先下载 PhysXNet 数据集,且因 PartNet 无纹理还要额外下载 ShapeNet 到 ./dataset_toolkits/shapenet;推理前需先运行 download_pretrain.sh 下载预训练权重

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    :open_book: For more visual results, go checkout our project page

    🏆 News

    • Our paper has been accepted to NeurIPS 2025 (Spotlight) 🎉
    • We provide a script for converting our JSON annotations into URDF format 🎉 See urdf_gen.py.

    PhysXNet & PhysXNet-XL

    For more details about our proposed dataset including dataset structure and annotation, please see this link

    The scripts for annotation and obtaining texture information are located in ./tools.

    Run this script to convert our json files to URDF.

    python urdf_gen.py
    

    PhysXGen

    Installation

    1. Clone the repo:
    git clone --recurse-submodules https://github.com/ziangcao0312/PhysX-3D.git
    cd PhysX-3D 
    
    1. Create a new conda environment named physxgen and install the dependencies:
    . ./setup.sh --new-env --basic --xformers --flash-attn --diffoctreerast --spconv --mipgaussian --kaolin --nvdiffrast
    

    Note: The detailed usage of setup.sh can be found at TRELLIS

    Training

    1. Download and preprocess the PhysXNet Dataset
    huggingface-cli download Caoza/PhysX-3D PhysXNet.zip --repo-type dataset --local-dir ./dataset_toolkits/
    cd dataset_toolkits
    unzip PhysXNet.zip -d physxnet
    

    Note: Since PartNet has no texture information, you need to download the ShapeNet dataset and save it to ./dataset_toolkits/shapenet to obtain texture information. The validation (first 1k samples) and test (last 1k samples) splits are stored in val_test_list.npy.

    bash precess.sh
    
    1. VAE training
    python train.py 
         --config configs/vae/slat_vae_enc_dec_mesh_phy.json 
         --output_dir outputs/vae_phy 
         --data_dir ./datasets/PhysXNet 
    
    1. Diffusion training
    python train.py 
         --config configs/generation/slat_flow_img_dit_L_phy.json 
         --output_dir outputs/diffusion_phy 
         --data_dir ./datasets/PhysXNet 
    

    Inference

    1. Download the pre-train model from huggingface.
    bash download_pretrain.sh
    
    1. Run the inference code
    python example.py
    

    Evaluation

    1. Run the example script
    python example_render_gt_foreval.py
    
    1. Calculate the metrics:

    Euclidean distance for absolute scale;

    PSNR for density, affordance, and description maps;

    Instantiation distance for kinematics;

    Note: PhysX-Anything introduces a VLM-based evaluation for kinematics to achieve more flexible and fair evaluation.

    References

    If you find PhysX useful for your work please cite:

    @article{cao2025physx,
      title={PhysX-3D: Physical-Grounded 3D Asset Generation},
      author={Cao, Ziang and Chen, Zhaoxi and Pan, Liang and Liu, Ziwei},
      journal={arXiv preprint arXiv:2507.12465},
      year={2025}
    }
    
    @article{physxanything,
      title={PhysX-Anything: Simulation-Ready Physical 3D Assets from Single Image},
      author={Cao, Ziang and Hong, Fangzhou and Chen, Zhaoxi and Pan, Liang and Liu, Ziwei},
      journal={arXiv preprint arXiv:2511.13648},
      year={2025}
    }
    

    Acknowledgement

    The data and code is based on PartNet and TRELLIS. We would like to express our sincere thanks to the contributors.

    :newspaper_roll: License

    Distributed under the S-Lab License. See LICENSE for more information.