2023年11月29日发(作者:)
PointNet代码复现中遇到的问题
PointNet代码复现中遇到的问题
代码来源:
Q:down的代码作者是在Linux上运⾏的,⾃⼰在Windows上可否跑通?
A:可以
RuntimeError: Could not run ‘aten::’ with arguments from the ‘CUDATensorId’
backend.
RuntimeError: Could not run ‘aten::’ with arguments from the ‘CUDATensorId’ backend. ‘aten::’ is
only available for these backends: [CPUTensorId, VariableTensorId].
解决:pytorch1.4版本的问题,可以换pytorch1.5试试(btw:如果报错百度搜索不到解决办法可以去下载代码的GitHub讨论区看看有没
有同样的问题,是怎么解决的)
ModuleNotFoundError: No module named ‘tqdm’
解决:pip install tqdm
ValueError: Expected more than 1 value per channel when training, got input size ([1,
512])
因为我的训练样本有9843个⽽我的batch_size=2, 9843%2=4921余1
解决:删除了⼀个训练样本
modelnet40_train原本是9843个样本,我删掉了⼀个样本剩下9842个
更新pytorch的版本
(1)在anaconda navigator⾥⾯updatable勾选pytorch apply等了⼆⼗多分钟没反应,放弃了。
(2)卸载anaconda重装
安装完anaconda,在线装pytorch很容易失败,可以选择离线安装
pytorch的离线安装
conda环境使⽤基本命令
conda update -n base conda #updateconda
最新版本的
conda create -n xxxx python=3.5 #python3.5xxxx
创建的虚拟环境
conda activate xxxx #xxxx
开启环境
conda deactivate #
关闭环境
conda env list #
显⽰所有的虚拟环境
conda info --envs #
显⽰所有的虚拟环境
终⽌命令⾏—按键盘上的“Ctrl+C”组合键
退出exit()
进⼊某路径:cd E:yansheng


发布评论