win下的pointnext环境配置

1、下载PointNext源码

PointNext:下载给github上代码,其中openpoint文件夹里面是空的,下载并移动到该文件夹下。

guochengqian/PointNeXt: [NeurIPS'22] PointNeXt: Revisiting PointNet++ with Improved Training and Scaling Strategies (github.com)icon-default.png?t=N7T8https://github.com/guochengqian/PointNeXtguochengqian/openpoints at baeca5e319aa2e756d179e494469eb7f5ffd29f0 (github.com)icon-default.png?t=N7T8https://github.com/guochengqian/openpoints/tree/baeca5e319aa2e756d179e494469eb7f5ffd29f0

2、配置环境

1、安装cuda和cudnn,并配置环境

(超详细)CUDA与cuDNN安装教程-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/qq_45904458/article/details/132144817

2、安装vs2019并配置环境变量

windows下visual studio的环境配置_d:\work\visualstudio\ide\vc\tools\msvc\14.37.32822-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/weixin_44391451/article/details/1086419853、Anaconda配置环境

conda create -n openpoints python=3.8 
conda activate openpoints

# install PyTorch
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113

#建议直接下载torch_scatter-2.0.9-cp38-cp38-win_amd64.whl安装,省去编译安装缓慢。
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.11.0%2Bcu113.html


#requirements.txt中的deepspeed==0.3.16
pip install -r requirements.txt

# install cpp extensions, the pointnet++ library
cd openpoints/cpp/pointnet2_batch
python setup.py install
cd ../

# Blow are functions that optional. Necessary only if interested in reconstruction tasks such as completion
cd chamfer_dist
python setup.py install --user
cd ../emd
python setup.py install --user

# grid_subsampling library. necessary only if interested in S3DIS_sphere
cd subsampling
python setup.py build_ext --inplace
cd ..

# # point transformer library. Necessary only if interested in Point Transformer and Stratified Transformer

pointops/setup.py
'''
注释以下代码:
# (opt,) = get_config_vars('OPT')
# os.environ['OPT'] = " ".join(
#     flag for flag in opt.split() if flag != '-Wstrict-prototypes'
# )

'''
cd pointops/
python setup.py install
cd ..

  • 8
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值