上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: 一、Linux CMakeLists链接版本 官网下载Linux版本libtorch的时候会发现有(Pre-cxx11 ABI)和(cxx11 ABI)两个版本。 如果链接(cxx11 ABI)版本需要在CMakeLists.txt中加入 add_definitions(-D _GLIBCXX_US 阅读全文
posted @ 2021-11-17 16:39 半夜打老虎 阅读(5665) 评论(3) 推荐(1)
摘要: 文件内容 读取文件 先打开文件,按行读取 对每行数据按空格分割 格式转换 #include <iostream> #include <memory> #include <vector> #include <fstream> #include <sstream> void preprocess(std 阅读全文
posted @ 2021-11-17 11:26 半夜打老虎 阅读(682) 评论(0) 推荐(0)
摘要: 一、All inputs of range must be ints, found Tensor in argument 0: 问题 参数类型不正确,函数的默认参数是tensor 解决措施 函数传入参数不是tensor需要注明类型 我的问题是传入参数npoint是一个int类型,没有注明会报错,更改 阅读全文
posted @ 2021-11-15 17:49 半夜打老虎 阅读(2061) 评论(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 半夜打老虎 阅读(10246) 评论(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 半夜打老虎 阅读(501) 评论(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 半夜打老虎 阅读(200) 评论(0) 推荐(0)
摘要: 工作中有时会遇到求一些散点的轮廓问题,对常用的一些算法收集了一些资料,这里做一下记录。 凹包 Implementation of a fast and efficient concave hull algorithm 凹包与凸包求边界轮廓 浅议凹包算法 Alpha Shapes Alpha Shap 阅读全文
posted @ 2021-10-06 11:45 半夜打老虎 阅读(1118) 评论(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 半夜打老虎 阅读(1065) 评论(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 半夜打老虎 阅读(181) 评论(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 半夜打老虎 阅读(275) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页