Downloads · 30 days
0
point-24/pointnsp
pointnsp is a machine learning model from point-24. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A two-stage coarse-to-fine framework for high-quality 3D point cloud generation. Stage 1 learns multi-scale discrete representations via VQVAE; Stage 2 autoregressively predicts next-scale tokens via a causal transfor…
Downloads · 30 days
0
Access
Public
Updated Aug 26, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
A two-stage coarse-to-fine framework for high-quality 3D point cloud generation. Stage 1 learns multi-scale discrete representations via VQVAE; Stage 2 autoregressively predicts next-scale tokens via a causal transformer.
Download the ShapeNet point clouds (pre-sampled 15k points) from this link and place under data/:
data/ShapeNetCore.v2.PC15k/
├── 02691156/ # airplane
│ ├── train/
│ ├── val/
│ └── test/
├── 03001627/ # chair
├── 02958343/ # car
└── ...
# PointNSP-m (paper default: hidden=1024, codebook=8192, 10 scales)
python train_vqvae.py --config configs/vqvae_medium.yaml
# PointNSP-s (lightweight: hidden=512, codebook=4096)
python train_vqvae.py --config configs/vqvae_small.yaml
# Resume from checkpoint
python train_vqvae.py --config configs/vqvae_medium.yaml --resume checkpoints/vqvae_best.pt
# Online tokenization (stochastic FPS augmentation each epoch)
python train_transformer.py --config configs/transformer_medium.yaml \
--vqvae_ckpt checkpoints/vqvae_best.pt
# Fast training with pre-tokenized data
python train_transformer_fast.py --config configs/transformer_medium.yaml \
--tokenized_data data/tokenized/airplane_train.pt
python generate.py \
--vqvae_ckpt checkpoints/vqvae_best.pt \
--transformer_ckpt checkpoints/transformer_best.pt \
--num_samples 64 \
--output_dir generated/
model/
├── vqvae_model.py # Multi-Scale VQVAE (Algorithm 1 & 2)
├── transformer.py # Autoregressive Transformer (Stage 2)
├── pvcnn/ # Point-Voxel CNN encoder
├── fps.py # Farthest Point Sampling + LoD sequence
├── upsampling.py # PU-Net upsampling
├── positional_encoding.py # BAPE + scale embedding
├── masking.py # Block-wise causal mask + position-aware soft mask
configs/ # YAML configs for PointNSP-s and PointNSP-m
datasets/ # ShapeNet data loaders
tests/ # Unit tests (66 tests)
python -m pytest tests/ -v