随笔分类 -  Tools

摘要:一、逐像素比较 即比较每个像素的差异值,可选择平均绝对值误差(MAE)、均方误差(MSE)、均方根误差(RMSE)或归一化均方根误差(NRMSE)来度量。 参考:https://blog.csdn.net/weixin_37143678/article/details/103529831 二、直方图 阅读全文
posted @ 2022-10-24 22:11 半夜打老虎 阅读(183) 评论(0) 推荐(0) 编辑
摘要:代码 监控脚本 MonitorGpu.py,该脚本会自动监控GPU内存和功耗情况,在满足条件情况下,可以自动运行脚本TestCuda.py import os import sys import time import platform cmd = 'python TestCuda.py' def 阅读全文
posted @ 2022-10-18 22:16 半夜打老虎 阅读(573) 评论(0) 推荐(0) 编辑
摘要:最近需要查看代码允许过程中内存占用情况,这里利用Windows API获取当前进程占用内存情况,另外也可以借助Intel VTune Profiler工具(更加方便)和Visual Studio一起配合使用,便于查看程序运行时的热点、耗时等。 Windows API代码 #include<psapi 阅读全文
posted @ 2022-06-14 22:02 半夜打老虎 阅读(1929) 评论(0) 推荐(0) 编辑
摘要:最近项目中遇到一个问题,需要在Linux上进行调试,开始查找了Visual Studio 2019远程调试的一些资料,没有通过,后面采用Visual Studio Code成功调试找出问题。这里对VSCode调试的步骤做一个记录。 C++调试 一、visual studio2019 远程连接服务器进 阅读全文
posted @ 2022-05-23 15:24 半夜打老虎 阅读(1169) 评论(0) 推荐(0) 编辑
摘要:最近遇到一个问题,需要将下载的视频转为MP4格式,但视频下载下来是QLV或者QSV的,最终找到一个好的工具you-get可以直接从视频网站上下载mp4格式,这里记录一下下载过程。 一、支持网站 支持youtube,爱奇艺,腾讯等很多网站,而且部分网站还支持图片和音频下载和视频观看等功能,下图截取了一 阅读全文
posted @ 2021-11-28 10:54 半夜打老虎 阅读(1064) 评论(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 半夜打老虎 阅读(8364) 评论(0) 推荐(2) 编辑
摘要: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 半夜打老虎 阅读(144) 评论(0) 推荐(0) 编辑
摘要:img_path = "./data/img_37.jpg" # transforms.ToTensor() transform1 = transforms.Compose([ transforms.ToTensor(), # range [0, 255] -> [0.0,1.0] ] ) ## o 阅读全文
posted @ 2021-10-06 10:58 半夜打老虎 阅读(512) 评论(0) 推荐(0) 编辑
摘要:SSE(Semantic Segmentation Editor)是一个开源的点云标注工具,代码地址:Hitachi-Automotive-And-Industry-Lab/semantic-segmentation-editor 这里记录一下安装和使用过程,以及中间遇到的一些问题。 Tool Ve 阅读全文
posted @ 2021-09-10 11:04 半夜打老虎 阅读(3252) 评论(0) 推荐(0) 编辑
摘要:有时候需要在Release模式下进行调试, 这里对设置流程做一个记录, 右击打开项目属性,然后按以下顺序依次配置 step1 配置C/C++ 常规 调试信息格式设置为程序数据库(/Zi) step2 配置C/C++ 优化 优化设置为已禁用(/Od) step3 配置链接器 调试 生成调试信息设置为生 阅读全文
posted @ 2021-08-20 13:58 半夜打老虎 阅读(401) 评论(0) 推荐(0) 编辑
摘要:在visual studio中编译好程序后,运行时有时会出现找不到库的错误,这里对几种排查方法做一个记录。 排查方法 方法一 把dll文件的路径添加到系统的环境变量 PATH 中 方法二 直接把所有 dll 拷贝到 Visual Studio 工程目录下,或是拷贝到生成可执行文件的文件夹(默认情况下 阅读全文
posted @ 2021-08-03 19:17 半夜打老虎 阅读(9636) 评论(0) 推荐(1) 编辑
摘要:最近遇到一个问题,需要将字符串按格式拼接发送给服务端,然后获取结果,网上查找一些资料后发现sprintf和stringstream能满足我的需求,其中sprintf是C的函数,stringstream是C++的函数,这里记录一下使用过程。 示例 需要将三维坐标点按照固定格式变成字符串,然后再发送给服 阅读全文
posted @ 2021-08-03 19:10 半夜打老虎 阅读(2607) 评论(0) 推荐(0) 编辑
摘要:SWIG (Simplified Wrapper and Interface Generator)是一个连接C和C++编写的程序和其他脚本语言的接口编译器,如Perl、Python、Ruby和Tcl等脚本语言。编写好的C和C++程序可以通过SWIG编译成其他语言的接口。这里记录使用SWIG将C++代 阅读全文
posted @ 2021-08-02 19:06 半夜打老虎 阅读(325) 评论(0) 推荐(0) 编辑
摘要:数据 同时存在多种数据类型,如 data.txt 5.1,3.5,1.4,0.2,Iris-setosa 4.9,3.0,1.4,0.2,Iris-setosa 5.8,2.7,4.1,1.0,Iris-versicolor 6.2,2.2,4.5,1.5,Iris-versicolor 6.4,3 阅读全文
posted @ 2021-05-16 12:19 半夜打老虎 阅读(643) 评论(0) 推荐(0) 编辑
摘要:一、windows创建共享文件夹 在共享电脑上新建一个文件夹,重命名后(如:shareDir),依次点击属性-->共享-->高级共享,勾选共享此文件夹,这里可以设置最大共享数量 然后设置用户权限,局域网可以添加用户 二、linux配置 自动挂载 在linux下先查看/etc/fstab文件内容 然后 阅读全文
posted @ 2021-05-16 11:56 半夜打老虎 阅读(535) 评论(0) 推荐(0) 编辑
摘要:参考链接: 官方文档:https://cython.readthedocs.io/en/latest/ 中文文档:https://www.bookstack.cn/read/cython-doc-zh/docs-29.md 多个库编译成一个库:https://paper.seebug.org/113 阅读全文
posted @ 2021-05-05 17:55 半夜打老虎 阅读(137) 评论(0) 推荐(0) 编辑
摘要:参考网站: python https://python-parallel-programmning-cookbook.readthedocs.io/zh_CN/latest/index.html https://www.machinelearningplus.com/python/parallel- 阅读全文
posted @ 2021-05-05 17:53 半夜打老虎 阅读(188) 评论(0) 推荐(0) 编辑
摘要:查找某个文件夹下指定后缀名的所有文件 import glob glob.glob(os.path.join(target_dir, target_suffix)) 示例 查找当前目录下所有txt文件 glob.glob(os.path.join("./", "*.txt")) 查找某个文件夹及其子文 阅读全文
posted @ 2021-05-04 11:03 半夜打老虎 阅读(10223) 评论(0) 推荐(1) 编辑
摘要:参考地址:http://blog.jianchihu.net/visual-studio-memory-leak.html 系统自带的_CrtDumpMemoryLeaks函数 和vs studio插件 Visual Leak Detector(VLD) 其他工具: Intel VTune Prof 阅读全文
posted @ 2021-04-29 09:20 半夜打老虎 阅读(414) 评论(0) 推荐(0) 编辑
摘要:由于linux不是很熟悉,使用过程中犯了一些错误,这里记录一下,为自己提供警醒。 1、修改~/.bashrc环境变量 问题 有些时候需要配置环境变量,但不小心输入错误内容,造成ls vim ...等大量常用命令不能使用 解决办法 先在命令行手动导入以下目录,然后重新修改~/.bashrc文件 exp 阅读全文
posted @ 2021-03-28 09:41 半夜打老虎 阅读(1673) 评论(2) 推荐(1) 编辑

点击右上角即可分享
微信分享提示