SensatUrban数据集(RandLA-Net)——问题记录(win10)

SensatUrban数据集(RandLA-Net)——问题记录(win10)

1.环境

open3d-python用最新的

2.编译

用 git Bash编译,要切换环境,否则在base下生成的是3.9的,具体方法可以看这里git切换conda环境

3.坑

在tool.py中

import nearest_neighbors.lib.python.nearest_neighbors as nearest_neighbors

这就是个坑,哎,正确的是

import utils.nearest_neighbors.lib.python.KNN_NanoFLANN.nearest_neighbors as nearest_neighbors

cpp_subsampling.cpmpute在哪???

    def grid_sub_sampling(points, features=None, labels=None, grid_size=0.1, verbose=0):
        """
        CPP wrapper for a grid sub_sampling (method = barycenter for points and features
        :param points: (N, 3) matrix of input points
        :param features: optional (N, d) matrix of features (floating number)
        :param labels: optional (N,) matrix of integer labels
        :param grid_size: parameter defining the size of grid voxels
        :param verbose: 1 to display
        :return: sub_sampled points, with features and/or labels depending of the input
        """

        if (features is None) and (labels is None):
            return cpp_subsampling.compute(points, sampleDl=grid_size, verbose=verbose)
        elif labels is None:
            return cpp_subsampling.compute(points, features=features, sampleDl=grid_size, verbose=verbose)
        elif features is None:
            return cpp_subsampling.compute(points, classes=labels, sampleDl=grid_size, verbose=verbose)
        else:
            return cpp_subsampling.compute(points, features=features, classes=labels, sampleDl=grid_size,
                                           verbose=verbose)

今天先记到这,待更。。。

AttributeError: module ‘tensorflow’ has no attribute ‘py_func’

tf.py_func 改成 tf.compat.v1.py_func

iter = tf.data.Iterator.from_structure(train_ds.output_types, train_ds.output_shapes)改成

iter = tf.compat.v1.data.Iterator.from_structure(tf.compat.v1.data.get_output_types(train_dataset),tf.compat.v1.data.get_output_shapes(train_dataset))
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值