原创 點雲編碼器TMC13編譯運行

先說一下TMC13和TMC2的區別,TMC2是壓縮動態的點雲的,TMC13靜態的(好像也可以動態)。 本人先在Windows下編譯出錯了,我用的VS2013,估計是這個問題。所以我就轉Ubuntu了,下面步驟是在ubuntu下運行

原创 C++指針數組&和*

// ConsoleApplication8.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include <iostream> using namespace std; int

原创 __len__,__getitem__,__setitem__

class test(object): def __init__(self,*args): # 所有的輸入 self.l = {i:k for i,k in enumerate(args)}

原创 正則表達式:簡單理解後向引用

每個子表達式包圍在(與)裏,第一個子表達式的序號是1: (ab)(cd)[def]*\2\1,前面先匹配ab和cd,[def]裏面取N次取N個,最後\1代表第一個表達式ab,\2代表第二個表達式,因此獲取的字符串可以是abcdee

原创 自編碼器AE編碼四維數據

import numpy as np import tensorflow as tf data = np.array([[[[-0.94644142, 0.83340192, 0.66930326], [-2.2

原创 VAE簡單理解

訓練兩個encoder(均值,方差),然後生成每個樣本各自的正態分佈,接着從各自的正態分佈中採樣,最後重建樣本。

原创 pycharm去除波浪線

file->setting-> Editor->Color Scheme->General 然後找Errors and Warnings->Typo,將effects去除勾選 然後再找Weak Warning,將effects去除

原创 pointnet++ 語義分割程序改錯

問題一: scannet_dataset.py格式出現問題,可按照https://github.com/charlesq34/pointnet2/blob/master/scannet/scannet_dataset.py對應修改

原创 tensorflow多維數據排序及tf.gather_nd函數使用

import tensorflow as tf data=tf.constant( [[[[ 1.4179282 , 1.5703515 , -0.61169857], [ 0.337431

原创 KeyError: "Registering two shape functions with name 'NnDistance' !

真是見鬼,編譯tf_nndistance_g.cu這些C++ OP都沒問題,但是調用就出現了這個問題:KeyError: "Registering two shape functions with name ‘NnDistance

原创 tensorflow一、基本分類(出現的問題)

本文例子來自官網:https://tensorflow.google.cn/tutorials/keras/basic_classification 第一步:導入庫 # TensorFlow and tf.keras import t

原创 Tensorflow--三、迴歸

官網:https://tensorflow.google.cn/tutorials/keras/basic_regression from __future__ import absolute_import, division, pr

原创 matlab中的knnsearch函數

IDX = knnsearch(X, Y) 在向量集合X中找到分別與向量集合Y中每個行向量最近的鄰居。X大小爲Mx-by-N(Mx行N列)矩陣,Y爲大小My-by-N(My行N列)的矩陣,My可以不等於Mx; 數組b在a中找距離