Pytorch implementation of the paper Order Matters: 3D Shape Generation from Sequential VR Sketches
We introduce Sketch2Shape model:
- An automated pipeline that generates sequential VR sketches from arbitrary shapes
- A dataset of over 20k synthetic and 900 hand-drawn sketch-shape pairs across four categories
- An order-aware sketch encoder coupled with a diffusion-based 3D generator
Structure of this repository:
|
├── dataloader <- Data loader
├── config <- Model configurations
├── eval <- Evaluation code
├── data <- Dataset for training
│ ├── VRSketch2Shape <- VRSketch2Shape dataset
├── models <- Model
│ ├── base_model.py <- Base model
| ├── sketch2shape_model.py <- VRSketch2Shape model
├── environment.yml <- Conda environment .yml file
├── scripts <- Scripts for running the experiments
├── utils <- Some useful functions
├── infer.py <- Inference and evaluation code for VRSketch2Shape
└── README.md
conda env create -f environment.yml
conda activate sketch2shape
At the moment, we only provide sketch shapes for model inference. The training sketch shapes will be released soon!
pip install huggingface_hub
huggingface-cli download YiziChen/VRSketch2Shape_dataset/blob/main/data.zip --local-dir .
unzip data.zip
pip install huggingface_hub
huggingface-cli download YiziChen/sketch2model/df_epoch_best_multicls.pth --local-dir ./weights/all_class
Coming soon!
To test and evaluate the model, launch:
sh scripts/run_infer.sh• Our approach generates shapes that are detailed, structurally accurate, and topologically faithful to the target geometry.
• Results on sketches depicting object categories not present in the training data, including bottles, lamps, and cars from ShapeNet, and monitors, toilets, and beds from ModelNet. Despite the domain shift, our model generally produces plausible shapes aligned with the sketch intent.
•Our model generalizes well to free-hand sketches drawn without any reference shape for airplanes, chairs/sofas, tables, and cabinets, producing detailed and plausible reconstructions that reflect the user's intent.
If you use this method in your work, please cite our paper.
@inproceedings{Chen2025OrderM3,
title={Order Matters: 3D Shape Generation from Sequential VR Sketches},
author={Yizi Chen and Sidi Wu and Tianyi Xiao and Nina Wiedemann and Loic Landrieu},
doi={10.48550/arXiv.2512.04761},
year={2025},
}We are thankful for the great open-source code of SDFusion.
Coming soon!



