Merge branch ‘master’ of https://gitlink.org.cn/wanhr24/pct-jittor
A Jittor implementation of Point Cloud Transformer (PCT) for ModelNet40 classification.
本项目提供了 Point Cloud Transformer (PCT) 的 Jittor 实现,用于 ModelNet40 三维形状分类任务。
安装核心依赖:
# 安装 Jittor 及系统编译依赖 sudo apt install -y build-essential libomp-dev pip install jittor numpy scipy tqdm
由于数据集体积较大,未包含在仓库中。请根据以下说明准备数据:
.npy
data/
data/train_points.npy
data/train_labels.npy
data/test_points.npy
使用 GPU 加速运行:
export jt_flags="use_cuda=1" python3 pct.py --data_dir ./data --batch_size 32 --epochs 200 --lr 0.01
训练完成后,脚本会自动对测试集进行推理,并生成 result.json。模型权重将保存为 pct_model.pkl。
result.json
pct_model.pkl
欢迎通过 Issues 提交反馈或 Pull Requests 改进代码。
n_points
batch_size
epochs
lr
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 ModelNet40 classification.
本项目提供了 Point Cloud Transformer (PCT) 的 Jittor 实现,用于 ModelNet40 三维形状分类任务。
主要特性
模型架构
运行环境
安装核心依赖:
数据集准备
由于数据集体积较大,未包含在仓库中。请根据以下说明准备数据:
.npy格式。data/目录:data/train_points.npy,data/train_labels.npydata/test_points.npy使用方法
训练模型
使用 GPU 加速运行:
推理预测
训练完成后,脚本会自动对测试集进行推理,并生成
result.json。模型权重将保存为pct_model.pkl。贡献与反馈
欢迎通过 Issues 提交反馈或 Pull Requests 改进代码。
代码超参数
n_pointsbatch_sizeepochslr