环境安装:[https://blog.csdn.net/Parkerfive/article/details/123431266]
参考:在RTX 3090上复现点云语义分割算法RandLA-net
Ubuntu18.04/20.04复现算法RandLa-net 数据集S3DIS
1. 运行 python utils/data_prepare_s3dis.py
报错1:
FileNotFoundError: [Errno 2] No such file or directory: ‘/data/S3DIS/original_ply’
找到data_prepare_s3dis.py,将/data/S3DIS/Stanford3dDataset_v1.2_Aligned_Version
改成绝对路径’/home/clm/training/RandLA-Net-master/data/S3DIS/Stanford3dDataset_v1.2_Aligned_Version ’
报错2:
module ‘tensorflow’ has no attribute ‘py_func’
参考:https://www.codenong.com/cs106162826/
把tf.py_func改成tf.compat.v1.py_func
报错3:
Traceback (most recent call last):
File “main_S3DIS.py”, line 235, in
dataset.init_input_pipeline()
File “main_S3DIS.py”, line 214, in init_input_pipeline
iter = tf.data.Iterator.from_structure(self.batch_train_data.output_types, self.batch_train_data.output_shapes)
AttributeError: type object ‘IteratorBase’ has no attribute ‘from_structure’
keras版本不兼容
报错4:
AttributeError: ‘NoneType’ object has no attribute ‘name’
main_S3DIS.py修改路径为绝对路径
就这个路径,修改了好几次,一样的东西却没有跑通,今天不知道怎么的突然就跑通了
运行 python -B main_S3DIS.py --gpu 0 --mode train --test_area 1
成功加载数据了,也没有报错了
epoch0这里一直显示不动,过了很久才跑起来了,还以为是哪里出错了呢,丢在一旁突然就跑通了。
运行 sh jobs_6_fold_cv_s3dis.sh