ADD file via upload
A Jittor implementation of Point Cloud Transformer (PCT) for 3D shape classification on ModelNet40.
Best validation accuracy: 81.02% (epoch 183, 200-epoch training).
Install Jittor:
pip install jittor
Place the ModelNet40 dataset files under ./data/:
./data/
data/ ├── train_points.npy # (9843, N, 3) ├── train_labels.npy # (9843,) ├── test_points.npy # (2468, N, 3) └── categories.txt # 40 class names
python pct.py --data_dir ./data
Optional arguments:
--data_dir
./data
--n_points
1024
--batch_size
32
--epochs
200
--lr
0.001
--seed
42
The best model is saved to best_pct_model.pkl and predictions are written to result.json.
best_pct_model.pkl
result.json
Input (B, 3, N) → Embedding: Conv1d(3→128) × 2 + BN + LeakyReLU → SA_Layer × 4 (scaled dot-product self-attention, shared Q/K projection) → Concat + Conv1d(512→1024) + BN + LeakyReLU → Global Max Pooling → FC(1024→512→256→40) + BN + Dropout(0.3) Output logits (B, 40)
Total parameters: ~1.37M
Predictions are in result.json (sample index → class index mapping).
A Jittor implementation of Point Cloud Transformer(PCT) for ModelNet40 classification
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
PCT_jittor
A Jittor implementation of Point Cloud Transformer (PCT) for 3D shape classification on ModelNet40.
Best validation accuracy: 81.02% (epoch 183, 200-epoch training).
Requirements
Install Jittor:
Data
Place the ModelNet40 dataset files under
./data/:Training
Optional arguments:
--data_dir./data--n_points1024--batch_size32--epochs200--lr0.001--seed42The best model is saved to
best_pct_model.pkland predictions are written toresult.json.Model Architecture
Total parameters: ~1.37M
Key Design Choices
Results
Predictions are in
result.json(sample index → class index mapping).Evaluation Screenshot