上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
摘要: 一、All inputs of range must be ints, found Tensor in argument 0: 问题 参数类型不正确,函数的默认参数是tensor 解决措施 函数传入参数不是tensor需要注明类型 我的问题是传入参数npoint是一个int类型,没有注明会报错,更改 阅读全文
posted @ 2021-11-15 17:49 半夜打老虎 阅读(2049) 评论(0) 推荐(0)
摘要: 不支持中文 std::wstring wide = L"wide"; std::string str(wide.begin(), wide.end()); std::string s = "hello"; std::wstring ws(s.begin(), s.end()); 支持中文 // Wi 阅读全文
posted @ 2021-11-11 16:00 半夜打老虎 阅读(10041) 评论(0) 推荐(2)
摘要: One-hot编码 将标签转换为one-hot编码形式 def to_categorical(y, num_classes): """ 1-hot encodes a tensor """ new_y = torch.eye(num_classes)[y.cpu().data.numpy(), ] 阅读全文
posted @ 2021-10-21 10:05 半夜打老虎 阅读(497) 评论(0) 推荐(0)
摘要: Computer Graphics Research Software 包含大量文章及开源库 http://www.dgp.toronto.edu/~rms/links.html PCL https://www.cnblogs.com/li-yao7758258/p/6441763.html htt 阅读全文
posted @ 2021-10-06 11:48 半夜打老虎 阅读(189) 评论(0) 推荐(0)
摘要: 工作中有时会遇到求一些散点的轮廓问题,对常用的一些算法收集了一些资料,这里做一下记录。 凹包 Implementation of a fast and efficient concave hull algorithm 凹包与凸包求边界轮廓 浅议凹包算法 Alpha Shapes Alpha Shap 阅读全文
posted @ 2021-10-06 11:45 半夜打老虎 阅读(1106) 评论(0) 推荐(0)
摘要: vedo是一个基于VTK开发的3维对象显示和分析的开源库,我常用于显示三维对象,这里记录一下常用的操作 显示模型及点集 def show_stl_pts_point_two(stl_path, pts_path, target_pts, point): stl_model = vedo.load(s 阅读全文
posted @ 2021-10-06 11:32 半夜打老虎 阅读(1059) 评论(0) 推荐(0)
摘要: import vtk from vtkplotter import * from vtk.util.numpy_support import vtk_to_numpy import numpy as np import os def get_gum_line_pts(gum_line_path): 阅读全文
posted @ 2021-10-06 11:28 半夜打老虎 阅读(173) 评论(0) 推荐(0)
摘要: 参考链接: https://kitware.github.io/vtk-examples/site/Cxx/ https://blog.csdn.net/www_doling_net/article/details/8763686 Example1 CMakeLists.txt cmake_mini 阅读全文
posted @ 2021-10-06 11:27 半夜打老虎 阅读(267) 评论(0) 推荐(0)
摘要: 工作中聚类应用比较广泛,这里对常用的聚类方法收集了一些比较好的博客 k-means 基于距离的聚类方法 https://www.cnblogs.com/xiaxuexiaoab/p/10211279.html DBSCAN 基于密度的空间聚类算法,需要人为定义好筛选半径和最小个数, 大体过程: 定义 阅读全文
posted @ 2021-10-06 11:26 半夜打老虎 阅读(132) 评论(0) 推荐(0)
摘要: 工作中有时候会遇到求向量和轮廓的交点,这里可以参考以下博客: 求解向量和轮廓的交点 阅读全文
posted @ 2021-10-06 11:16 半夜打老虎 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页