03 2022 档案

摘要:伪目标是这样一个目标:它不代表一个真正的文件名,在执行make时可以指定这个目标来执行所在规则定义的命令,有时也可以将一个伪目标称为标签。伪目标通过PHONY来指明。 PHONY定义伪目标的命令一定会被执行,下面尝试分析这种优点的妙处。 1、如果我们指定的目标不是创建目标文件,而是使用makefil 阅读全文
posted @ 2022-03-30 16:11 小丑_jk 阅读(138) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/yffhhffv/article/details/87861031 阅读全文
posted @ 2022-03-29 22:39 小丑_jk 阅读(20) 评论(0) 推荐(0) 编辑
摘要:https://www.zhihu.com/question/47691414 阅读全文
posted @ 2022-03-29 22:12 小丑_jk 阅读(53) 评论(0) 推荐(0) 编辑
摘要:一、MNN 量化和调优1、量化工具https://www.yuque.com/mnn/en/tool_quantize2、量化调优https://www.yuque.com/mnn/en/tqr7ft 量化后的模型继续trainning调优二、NCNN量化https://github.com/Ten 阅读全文
posted @ 2022-03-29 17:36 小丑_jk 阅读(173) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/thesnowboy_2/article/details/69564226 阅读全文
posted @ 2022-03-27 21:28 小丑_jk 阅读(12) 评论(0) 推荐(0) 编辑
摘要:C++类中覆盖与隐藏一直是一个容易理解出错的地方,接下来我就详细讲解一下区别在何处 覆盖指的是子类覆盖父类函数(被覆盖),特征是: 1.分别位于子类和父类中 2.函数名字与参数都相同 3.父类的函数是虚函数(virtual) 隐藏指的是子类隐藏了父类的函数(还存在),具有以下特征: 子类的函数与父类 阅读全文
posted @ 2022-03-27 20:46 小丑_jk 阅读(494) 评论(0) 推荐(0) 编辑
摘要:lock_guard的使用 // lock_guard example #include <iostream> // std::cout #include <thread> // std::thread #include <mutex> // std::mutex, std::lock_guard 阅读全文
posted @ 2022-03-27 13:48 小丑_jk 阅读(416) 评论(0) 推荐(0) 编辑
摘要:https://www.runoob.com/python3/python3-multithreading.html import _thread import time # 为线程定义一个函数 def print_time( threadName, delay): count = 0 while 阅读全文
posted @ 2022-03-26 17:27 小丑_jk 阅读(59) 评论(0) 推荐(0) 编辑
摘要:最后,方便大家使用,放上开源框架大礼包: ncnn:https://github.com/Tencent/ncnn MNN:https://github.com/alibaba/MNN TNN:https://github.com/Tencent/TNN PL:https://github.com/ 阅读全文
posted @ 2022-03-26 17:16 小丑_jk 阅读(22) 评论(0) 推荐(0) 编辑
摘要:0. 写在前面 有人说过:“神经网络用剩的logits不要扔,沾上鸡蛋液,裹上面包糠...” 这两天对知识蒸馏(Knowledge Distillation)萌生了一点兴趣,正好写一篇文章分享一下。这篇文章姑且算是一篇小科普。 前排小广告:如果觉得文章对你有帮助,欢迎点赞、关注我的小专栏ML4NLP 阅读全文
posted @ 2022-03-26 16:49 小丑_jk 阅读(199) 评论(0) 推荐(0) 编辑
摘要:因为最近在做LPR(车牌识别)的小项目,需要把图片样本导入并训练,所以写了一个小程序。 在参考了网上部分资料后,得到目标目录charSamples下,文件夹1里所有50个样本图片文件的路径。 1.dirent.hdirent,LINUX系统下的一个头文件,在这个目录下/usr/include,为了获 阅读全文
posted @ 2022-03-25 16:04 小丑_jk 阅读(2812) 评论(0) 推荐(0) 编辑
摘要:(1) 保存和加载整个模型 # 模型保存 torch.save(model, 'model.pth') # 模型加载 model = torch.load('model.pth') (2) 仅仅保存模型参数以及分别加载模型结构和参数 # 模型参数保存 torch.save(model.state_d 阅读全文
posted @ 2022-03-25 14:11 小丑_jk 阅读(639) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/guyuealian/article/details/111259876 阅读全文
posted @ 2022-03-23 21:13 小丑_jk 阅读(45) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/37340242 阅读全文
posted @ 2022-03-23 10:20 小丑_jk 阅读(12) 评论(0) 推荐(0) 编辑
摘要:看《effective c++》,作者一直强调用std::tr1::shared_ptr,比起auto_ptr好多了。 shared_ptr采用引用计数,多个指针可以指向同一个对象;auto_ptr就不能,只能运行一个指针指向一个对象:如果要指针赋值,那么原来的指针要放弃对该对象的所有权。 恩,以后 阅读全文
posted @ 2022-03-22 21:54 小丑_jk 阅读(235) 评论(0) 推荐(0) 编辑
摘要:#define _CRT_SECURE_NO_WARNINGS 1 #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> using namespace std 阅读全文
posted @ 2022-03-20 13:55 小丑_jk 阅读(56) 评论(0) 推荐(0) 编辑
摘要:单个源文件生成可执行程序 下面是一个保存在文件 helloworld.cpp 中一个简单的 C++ 程序的代码: 单个源文件生成可执行程序 /* helloworld.cpp */ #include <iostream> int main(int argc,char *argv[]) { std:: 阅读全文
posted @ 2022-03-20 12:45 小丑_jk 阅读(1717) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <functional> using namespace std; int TestFunc(int a, char c, float f) { cout << a << endl; cout << c << endl; cout << f 阅读全文
posted @ 2022-03-19 20:41 小丑_jk 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> typedef int(*callback)(int, int); //声明函数指针 typedef struct A { int a; int b; }; int add(int a, int b, callback p){ return (*p)(a, b) 阅读全文
posted @ 2022-03-19 17:51 小丑_jk 阅读(50) 评论(0) 推荐(0) 编辑
摘要:创建动态库方法: 创建动态库是生成 .dll .lib 两个个文件 文件 -> 新建 -> 项目 -> win32控制台应用程序 项目名称:DLLGenerator 应用程序类型:DLL 附加选项:空项目 建立源文件dllgenerator.cpp(不需要主函数,只写你需要动态调用的函数) // 整 阅读全文
posted @ 2022-03-19 15:02 小丑_jk 阅读(814) 评论(0) 推荐(0) 编辑
摘要:第一步:模型转换,按照github一步一步来就ok了~此处无坑 第二步:cmake建立vs工程,需要在cmakelist里面需要使用的accelerator,否则在getdevice会返回NULL值 第三步:调用 #include "tnn/utils/dims_vector_utils.h" #i 阅读全文
posted @ 2022-03-18 22:14 小丑_jk 阅读(427) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/cb4f8136a265 阅读全文
posted @ 2022-03-18 11:11 小丑_jk 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/didiaopao/article/details/120717525 https://zhuanlan.zhihu.com/p/81688220 阅读全文
posted @ 2022-03-15 14:43 小丑_jk 阅读(23) 评论(0) 推荐(0) 编辑
摘要:np.unique(labels.cpu().detach().numpy()) 阅读全文
posted @ 2022-03-15 09:34 小丑_jk 阅读(101) 评论(0) 推荐(0) 编辑
摘要:仅作为记录,大佬请跳过。 用.T 即 (3, 1024, 2048)不能plt,而应该是(某,某,3)才能显示。 阅读全文
posted @ 2022-03-15 09:24 小丑_jk 阅读(850) 评论(0) 推荐(0) 编辑
摘要:outputs.cpu().detach().numpy()[0,:,:,:].shape import matplotlib.pyplot as pyplot pyplot.imshow(binary_mask)pyplot.show() 阅读全文
posted @ 2022-03-15 09:21 小丑_jk 阅读(387) 评论(0) 推荐(0) 编辑
摘要:pip install xxx -i https://pypi.douban.com/simple/ pip install -r req.txt -i https://pypi.douban.com/simple/ 阅读全文
posted @ 2022-03-14 20:29 小丑_jk 阅读(87) 评论(0) 推荐(0) 编辑
摘要:outputs[0,0,:,:].cpu().detach().numpy() 阅读全文
posted @ 2022-03-14 11:52 小丑_jk 阅读(203) 评论(0) 推荐(0) 编辑
摘要:https://github.com/davidtvs/PyTorch-ENet 阅读全文
posted @ 2022-03-13 17:31 小丑_jk 阅读(92) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_34097521/article/details/101191800 json2coco img_dir 为原始图片文件夹anno_dir为数据集的json格式格式如下 [ { "name": "d6718a7129af0ecf0827157752. 阅读全文
posted @ 2022-03-13 15:25 小丑_jk 阅读(492) 评论(0) 推荐(0) 编辑
摘要:https://www.freesion.com/article/4467145925/ 阅读全文
posted @ 2022-03-13 13:02 小丑_jk 阅读(30) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/fengyingv/article/details/110649612 阅读全文
posted @ 2022-03-13 12:42 小丑_jk 阅读(309) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/wangxiaocvpr/p/9997690.html 阅读全文
posted @ 2022-03-13 12:36 小丑_jk 阅读(186) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/linwantian/article/details/79377588 阅读全文
posted @ 2022-03-13 11:45 小丑_jk 阅读(20) 评论(0) 推荐(0) 编辑
摘要:import matplotlib.pyplot as pyplot pyplot.imshow(binary_mask)pyplot.show() binary_mask显示为: array([[0, 0, 0, ..., 0, 0, 0], [0, 1, 0, ..., 0, 0, 0], [0 阅读全文
posted @ 2022-03-13 10:38 小丑_jk 阅读(961) 评论(0) 推荐(1) 编辑
摘要:https://www.freesion.com/article/95661187982/ 将彩色RGB分割标注图像数据集转换为COCO格式的JSON文件 由于很多检测、分割网络对coco格式的数据集都兼容支持,有时候需要将自己的数据集转化为coco格式的json文件,写一篇博客记录一下自己将彩色R 阅读全文
posted @ 2022-03-13 10:20 小丑_jk 阅读(1534) 评论(0) 推荐(0) 编辑
摘要:https://www.10qianwan.com/articledetail/742889.html 在网上尝试了很多种方法去安装 pycocotools 都以失败告终,机缘巧合找到了一种方法,亲测可用。 1、下载好 cocoapi 的压缩包,地址https://github.com/philfe 阅读全文
posted @ 2022-03-13 00:50 小丑_jk 阅读(982) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/m0_47096428/article/details/122422405 https://blog.csdn.net/mybelief321/article/details/9076331 阅读全文
posted @ 2022-03-12 22:17 小丑_jk 阅读(22) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u013685264/article/details/100564660 阅读全文
posted @ 2022-03-12 16:20 小丑_jk 阅读(152) 评论(0) 推荐(0) 编辑
摘要:一、介绍std::not1 和 std::not2 是用来把,符合某种特殊条件的『函数对象』转换为反义「函数对象」的函数。 具体的: not1是构造一个与谓词结果相反的一元函数对象。not2是构造一个与谓词结果相反的二元函数对象。 二、用法not1 // not1 example #include 阅读全文
posted @ 2022-03-10 22:23 小丑_jk 阅读(611) 评论(0) 推荐(0) 编辑
摘要:关于继承,之前一直使用的是public,于是查了点资料 1 private, public, protected 访问标号的访问范围 private:只能由1.该类中的函数、2.其友元函数访问。不能被任何其他访问,该类的对象也不能访问。 protected:可以被1.该类中的函数、2.子类的函数、3 阅读全文
posted @ 2022-03-10 21:47 小丑_jk 阅读(634) 评论(0) 推荐(0) 编辑
摘要:回调函数就是一个通过函数指针调用的函数。如果你把函数的指针(地址)作为参数传递给另一个函数,当这个指针被用来调用其所指向的函数时,我们就说这是回调函数。回调函数不是由该函数的实现方直接调用,而是在特定的事件或条件发生时由另外的一方调用的,用于对该事件或条件进行响应可能这些概念性的东西不是太好理解,通 阅读全文
posted @ 2022-03-09 23:35 小丑_jk 阅读(375) 评论(0) 推荐(0) 编辑
摘要:这里是简述各种方法,下面有详细叙述 方法选择: DPM 使用传统的slider window的方法 计算量非常大 OverFeat 改进了Alex-net,并用图像缩放和滑窗方法在test数据集上测试网络;提出了一种图像定位的方法;最后通过一个卷积网络来同时进行分类,定位和检测三个计算机视觉任务,并 阅读全文
posted @ 2022-03-03 22:58 小丑_jk 阅读(884) 评论(0) 推荐(0) 编辑