<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[李昂的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/threestooegs</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; threestooegs]]></copyright><item><title><![CDATA[阿里云服务器通过nps访问内网服务实现内网穿透]]></title><link>https://blog.csdn.net/threestooegs/article/details/145569619</link><guid>https://blog.csdn.net/threestooegs/article/details/145569619</guid><author>threestooegs</author><pubDate>Tue, 11 Feb 2025 15:27:05 +0800</pubDate><description><![CDATA[nps支持多平台的客户端配置，访问https://github.com/ehang-io/nps/releases/tag/v0.26.10地址可以下载不同平台的客户端，配置都是相同的，需要注意的是在windows平台下会被认为是病毒软件，需要将nps.exe添加到杀毒软件的信任区，否则不可用。以上配置完成就可以在任意主机访问内网的服务了，整个流程来讲还是比较简单的，有需要的可以自己玩一下，通过nps界面还可以查看流量的使用情况，还是比较方便的。下载后是一个压缩包文件，解压后有conf和npc两个文件。]]></description><category></category></item><item><title><![CDATA[win11通过ollama本地部署deepseek-r1:1.5b]]></title><link>https://blog.csdn.net/threestooegs/article/details/145340529</link><guid>https://blog.csdn.net/threestooegs/article/details/145340529</guid><author>threestooegs</author><pubDate>Fri, 24 Jan 2025 14:08:27 +0800</pubDate><description><![CDATA[deepseek-r1:1.5b这个模型确实很轻量资源占用很少，应该也就占用1GB多点显存，但是也确实比较呆，很多问题都回答不上来，这里如果想要运行其他模型，可以参考ollama的技术文档https://ollama.readthedocs.io/quickstart/ 里面说明了其他模型运行的方式以及所需要的资源。下载完成后安装ollama，默认安装在c盘下面，这个通过默认安装方式无法更改模型就行，安装完成后可以打开CMD窗口输入。首次运行会自动下载模型，运行完成后就可以进行正常交互了。]]></description><category></category></item><item><title><![CDATA[ros2编写pcl节点加载pcd文件]]></title><link>https://blog.csdn.net/threestooegs/article/details/138654530</link><guid>https://blog.csdn.net/threestooegs/article/details/138654530</guid><author>threestooegs</author><pubDate>Sun, 26 May 2024 11:00:08 +0800</pubDate><description><![CDATA[初次学习ros2和pcl，尝试在ros2中创建节点，加载pcd文件，并在rviz中进行可视化，记录一下整个过程。]]></description><category></category></item><item><title><![CDATA[词嵌入nn.embedding的解释]]></title><link>https://blog.csdn.net/threestooegs/article/details/139211751</link><guid>https://blog.csdn.net/threestooegs/article/details/139211751</guid><author>threestooegs</author><pubDate>Sun, 26 May 2024 10:59:22 +0800</pubDate><description><![CDATA[类似于：word2id = {‘i’ : 1, ‘like’ : 2, ‘you’ : 3, ‘want’ : 4, ‘an’ : 5, ‘apple’ : 6} 这样的形式。（3）然后再以句子为list，为每个句子建立索引结构，list [ [ sentence1 ] , [ sentence2 ] ]。以上面字典的索引来说，最终建立的就是 [ [ 1 , 2 , 3 ] , [ 1 , 4 , 5 , 6 ] ]。]]></description><category></category></item><item><title><![CDATA[windows平台下调用海康网络相机找不到PlayCtrl.dll]]></title><link>https://blog.csdn.net/threestooegs/article/details/138152446</link><guid>https://blog.csdn.net/threestooegs/article/details/138152446</guid><author>threestooegs</author><pubDate>Wed, 24 Apr 2024 10:57:01 +0800</pubDate><description><![CDATA[在代码中调用了两个dll，其中HCNetSDK.dll能够找到，第二个PlayCtrl.dll死活找不到，根据https://gitee.com/MengNiMeia/python_hkcam/issues/I6R7QR中提示，PlayCtrl.dll有相关依赖的dll在HCNetSDKCom目录下，把HCNetSDKCom中的所以dll放到和PlayCtrl.dll同级别目录解决该问题。2、将dll路径配置到环境变量中。以上两种方案都不能解决。]]></description><category></category></item><item><title><![CDATA[C++ 多线程编程和线程池]]></title><link>https://blog.csdn.net/threestooegs/article/details/135581574</link><guid>https://blog.csdn.net/threestooegs/article/details/135581574</guid><author>threestooegs</author><pubDate>Sun, 14 Jan 2024 22:01:23 +0800</pubDate><description><![CDATA[子线程和主线程同时执行，当子线程没执行完，主线程结束时，程序就会报错。lock_gurad，只在局部作用域中使用，不能复制和移动，轻量级锁。joinable，判断线程是否可以调用join和detach。3、线程安全，多线程的运行程序和单线程的运行结果都是一样的。join，主线程等待子线程执行完成后再执行，只能使用一次。unqiue_lock，重量级锁，可以手动加锁、延迟加锁。2、多线程中传递的指针可能存在被释放的问题需要注意。detach，主程序结束，子线程会在后台执行。多线程调用函数代码如下。]]></description><category></category></item><item><title><![CDATA[解决json.decoder.JSONDecodeError: Extra data: line 1 column 721 (char 720)问题]]></title><link>https://blog.csdn.net/threestooegs/article/details/127532021</link><guid>https://blog.csdn.net/threestooegs/article/details/127532021</guid><author>threestooegs</author><pubDate>Tue, 02 Jan 2024 23:15:41 +0800</pubDate><description><![CDATA[排查了以下原因应该是序列化的字符串全都在一行，json库不能一次性处理这么长的序列。python中将字符串序反列化成json格式时报错。]]></description><category></category></item><item><title><![CDATA[yolov5 损失函数]]></title><link>https://blog.csdn.net/threestooegs/article/details/129785184</link><guid>https://blog.csdn.net/threestooegs/article/details/129785184</guid><author>threestooegs</author><pubDate>Tue, 02 Jan 2024 23:12:19 +0800</pubDate><description><![CDATA[作为一款尖端、最先进的（SOTA）车型，YOLOv8在之前版本的成功基础上，引入了新的功能和改进，以增强性能、灵活性和效率。当预测边框和真是边框的中心点重合时，DIOU退化成了传统IOU，综合了IOU的面积损失 、和DIOU的中心点损失和自身宽高比损失三种优势。（2）对比IOU损失，L2和Giou具有偏离趋势度量的能力，当IOU=0时，交和不交的损失是一样的，L2和GIOU就不会这样。2、对于网络的3个头的输出匹配正样本，筛选GT和anchor符合条件的高宽比，大于就是正样本反就是负样本。]]></description><category></category></item><item><title><![CDATA[python中使用socket服务发送接收图像]]></title><link>https://blog.csdn.net/threestooegs/article/details/126370076</link><guid>https://blog.csdn.net/threestooegs/article/details/126370076</guid><author>threestooegs</author><pubDate>Tue, 02 Jan 2024 23:06:49 +0800</pubDate><description><![CDATA[python中使用socket服务发送接收图像的代码，可在服务器端中插入模型推理代码进行推理返回结果。]]></description><category></category></item><item><title><![CDATA[windows下使用makefile编译c++程序]]></title><link>https://blog.csdn.net/threestooegs/article/details/135180702</link><guid>https://blog.csdn.net/threestooegs/article/details/135180702</guid><author>threestooegs</author><pubDate>Tue, 02 Jan 2024 23:04:17 +0800</pubDate><description><![CDATA[安装w64devkit版本，能使用一些类linux的命令如rm等。下载完成后解压压缩包，将bin目录添加到系统环境变量的PATH中。在cmd中验证使用make --version是否安装成功。]]></description><category></category></item><item><title><![CDATA[windows下使用vscode+cmake调用opencv]]></title><link>https://blog.csdn.net/threestooegs/article/details/135181010</link><guid>https://blog.csdn.net/threestooegs/article/details/135181010</guid><author>threestooegs</author><pubDate>Sun, 24 Dec 2023 13:46:49 +0800</pubDate><description><![CDATA[3.1 使用cmake构建项目。]]></description><category></category></item><item><title><![CDATA[windows下使用vccode+cmake编译cuda程序]]></title><link>https://blog.csdn.net/threestooegs/article/details/135173376</link><guid>https://blog.csdn.net/threestooegs/article/details/135173376</guid><author>threestooegs</author><pubDate>Sat, 23 Dec 2023 19:57:14 +0800</pubDate><description><![CDATA[1、在vscode中安装Nsight Visual Studio Code Edition。3、编写CMakeLists.txt。4.1 查询cmake编译器。4.2 指定编译器构建项目。4、安装cmake构建。2、编写cuda程序。5、运行编译好的程序。]]></description><category></category></item><item><title><![CDATA[c++ 构造函数]]></title><link>https://blog.csdn.net/threestooegs/article/details/129348605</link><guid>https://blog.csdn.net/threestooegs/article/details/129348605</guid><author>threestooegs</author><pubDate>Wed, 03 May 2023 09:48:24 +0800</pubDate><description><![CDATA[当用户自定义了其他构造函数，那么编译器则不会生成构造函数，若要使用无参数的生成对象，那么必须自定义一个无参数版本的构造函数。是一个默认构造函数，当我们既需要其他形式的构造函数，也需要默认构造函数时，就可以用=default。两种形式，第一种只有一个参数，第二种有若干参数，除了最左边的参数，都有默认值。析构函数：释放构造函数申请的内存空间，做一些内存清理工作，析构函数必须为public。每个类必须要有，若没有定义则自动提供，只有一个参数，参数的类型必须为自身类的引用。2、对象被销毁的时候，其成员被销毁。]]></description><category></category></item><item><title><![CDATA[c++中public、private和protected]]></title><link>https://blog.csdn.net/threestooegs/article/details/129343763</link><guid>https://blog.csdn.net/threestooegs/article/details/129343763</guid><author>threestooegs</author><pubDate>Wed, 03 May 2023 09:47:58 +0800</pubDate><description><![CDATA[class A ：private B ：public、protected、private变成了private、private、private，其中private不能被派生类访问。public继承，基类public成员，protected成员，private成员的访问属性在派生类中分别变成：public、protected、private。private继承，基类public成员，protected成员，private成员的访问属性在派生类中分别变成：private、private、private。]]></description><category></category></item><item><title><![CDATA[c++ 虚函数]]></title><link>https://blog.csdn.net/threestooegs/article/details/129343502</link><guid>https://blog.csdn.net/threestooegs/article/details/129343502</guid><author>threestooegs</author><pubDate>Wed, 03 May 2023 09:47:38 +0800</pubDate><description><![CDATA[6、重写则是派生类对基类同名函数的“本地改造”，要求函数特征标完全相同。3、“重写”的要求是函数的特征标（包括参数的数目、类型和顺序）以及返回值都必须与基类中的函数一致。4、只需将基类中的成员函数声明为虚函数即可，派生类中重写的virtual函数自动成为虚函数。1、c++ virtual 函数作用：如果重写的函数中有重名的函数，那么则调用重写的函数。std::cout << “派生类方法” << std::endl;std::cout << “基类方法” << std::endl;]]></description><category></category></item><item><title><![CDATA[yolov5导出onnx模型报错：Unsupported ONNX opset version: 17]]></title><link>https://blog.csdn.net/threestooegs/article/details/128739837</link><guid>https://blog.csdn.net/threestooegs/article/details/128739837</guid><author>threestooegs</author><pubDate>Tue, 02 May 2023 23:44:14 +0800</pubDate><description><![CDATA[2、onnx算子文档，https://github.com/onnx/onnx/blob/main/docs/Operators.md。Win10系统下使用pytorch1.11.0、onnx1.12.0转换yolov5cls转换onnx报错如下。1、模型部署，https://zhuanlan.zhihu.com/p/498425043。查找了相关资料后是由于pytorch对onnx算子的不支持。]]></description><category></category></item><item><title><![CDATA[transformer and DETR]]></title><link>https://blog.csdn.net/threestooegs/article/details/129678202</link><guid>https://blog.csdn.net/threestooegs/article/details/129678202</guid><author>threestooegs</author><pubDate>Tue, 02 May 2023 23:36:55 +0800</pubDate><description><![CDATA[3、使用q1对每个k（ki）做attention得到a1,i（i={1,2,3,4}），q1、k1，q1、k2，…4、把计算的a1,i做softmax操作，得到~a1,i，然后把它a1,i和所有的vi值相乘，然后相加得到b1，依次计算后得到bi。在self-attention的第二步，分别乘以多个wq、wk、wv矩阵得到qi,j、ki,j、vi,j。2、向量a1-a4分别乘上Wq、Wk、Wv得到不同的qi、ki、vi（i={1,2,3,4}）。4、用框子和GT做二分图的loss。1、用CNN去提取特征。]]></description><category></category></item><item><title><![CDATA[tensorrt基本接口]]></title><link>https://blog.csdn.net/threestooegs/article/details/129647117</link><guid>https://blog.csdn.net/threestooegs/article/details/129647117</guid><author>threestooegs</author><pubDate>Tue, 02 May 2023 23:35:32 +0800</pubDate><description><![CDATA[在不同的线程中使用多个构建器没有线程安全问题，构建器使用时许来确定所提供参数的最快内核，并且使用具有相同GPU的多个构建器将扰乱时序和TensorRT构建最佳引擎的能力，使用多线程在不同的GPU构建不存在这也的问题。TensorRT序列化的模型仅能用于相同的操作系统、CPU架构、GPU模型和TensorRT版本一致时才能一起使用，TensorRT检查模型的以下属性，如果环境不一致，将无法反序列化。ExecutionContext接口，用于调用推理的主要接口，推理时，必须在适当的位置设置输入和输出缓冲区。]]></description><category></category></item><item><title><![CDATA[解决显卡nvidia-smi中CUDA version:ERR问题]]></title><link>https://blog.csdn.net/threestooegs/article/details/127526018</link><guid>https://blog.csdn.net/threestooegs/article/details/127526018</guid><author>threestooegs</author><pubDate>Tue, 02 May 2023 23:28:00 +0800</pubDate><description><![CDATA[查找了相关的解决方案，大多数说是CUDA、cuDNN、显卡驱动版本不匹配问题，但是我的这套版本用了很长时间了，没有出现过这个问题，然后对问题进行了排查，怀疑是CUDA的动态连接库问题，查看了CUDA/lib目录下的动态链接库文件，果然多了两个文件，nvidia-smi查看显卡驱动后发现，CUDA  version：ERR！把这两个文件删除后，nvidia-smi后显示正常。]]></description><category></category></item><item><title><![CDATA[tensorrt基本流程]]></title><link>https://blog.csdn.net/threestooegs/article/details/130344329</link><guid>https://blog.csdn.net/threestooegs/article/details/130344329</guid><author>threestooegs</author><pubDate>Tue, 02 May 2023 23:26:33 +0800</pubDate><description><![CDATA[使用tensorrt加速分为构建阶段和运行阶段两个流程，其中构建阶段主要通过onnx_Parser或tensorrt的API搭建网络序列化engine模型。运行阶段加载反序列化engine模型创建分配内存现存资源，执行网络的推理。]]></description><category></category></item></channel></rss>