目录

PCT_jittor_pa3_yhd

项目简介:A Jittor implementation of Point Cloud Transformer(PCT) for ModelNet40 classification 项目语言选择:Python + Jittor

环境依赖

  • python==3.7.16
  • jittor==1.3.10.0
  • numpy==1.21.6

安装指令

pip install -r requirements.txt

数据集

使用 ModelNet40 数据集,包含 40 类 3D 物体的点云数据。

将数据文件放在 data/ 目录下:

  • train_points.npy - 训练集点云
  • train_labels.npy - 训练集标签
  • test_points.npy - 测试集点云

运行方式

训练并生成预测结果

python pct.py

可选参数

--data_dir, 默认为'./data'
--n_points, 默认为1024
--batch_size, 默认为32
--epochs, 默认为200
--lr, 优化器使用Adam时学习率默认值为0.001,使用SGD时要用0.01
--seed, 默认为42

eg

python pct.py --data_dir=./data --n_points=1024 --batch_size=32 --epochs=200 --lr=0.001

新方法说明

  1. 在pct.py的基础版代码中加入了“随机缩放”与“随机抖动”这两种数据增强方法。
  2. 将优化器改为了Adam,同时学习率默认值改为了0.001。

结果

ModelNet40 测试集上的分类准确率达到 83.02%。

许可

MIT License

Copyright (c) [2026] [杨昊东]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

关于

A Jittor implementation of Point Cloud Transformer (PCT) for ModelNet40 classification

38.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号