摘要:
https://www.zhihu.com/question/47691414 阅读全文
posted @ 2022-03-29 22:12
小kk_p
阅读(61)
评论(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
小kk_p
阅读(211)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/thesnowboy_2/article/details/69564226 阅读全文
posted @ 2022-03-27 21:28
小kk_p
阅读(20)
评论(0)
推荐(0)
摘要:
C++类中覆盖与隐藏一直是一个容易理解出错的地方,接下来我就详细讲解一下区别在何处 覆盖指的是子类覆盖父类函数(被覆盖),特征是: 1.分别位于子类和父类中 2.函数名字与参数都相同 3.父类的函数是虚函数(virtual) 隐藏指的是子类隐藏了父类的函数(还存在),具有以下特征: 子类的函数与父类 阅读全文
posted @ 2022-03-27 20:46
小kk_p
阅读(543)
评论(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
小kk_p
阅读(504)
评论(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
小kk_p
阅读(69)
评论(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
小kk_p
阅读(49)
评论(0)
推荐(0)
摘要:
0. 写在前面 有人说过:“神经网络用剩的logits不要扔,沾上鸡蛋液,裹上面包糠...” 这两天对知识蒸馏(Knowledge Distillation)萌生了一点兴趣,正好写一篇文章分享一下。这篇文章姑且算是一篇小科普。 前排小广告:如果觉得文章对你有帮助,欢迎点赞、关注我的小专栏ML4NLP 阅读全文
posted @ 2022-03-26 16:49
小kk_p
阅读(283)
评论(0)
推荐(0)
摘要:
因为最近在做LPR(车牌识别)的小项目,需要把图片样本导入并训练,所以写了一个小程序。 在参考了网上部分资料后,得到目标目录charSamples下,文件夹1里所有50个样本图片文件的路径。 1.dirent.hdirent,LINUX系统下的一个头文件,在这个目录下/usr/include,为了获 阅读全文
posted @ 2022-03-25 16:04
小kk_p
阅读(2913)
评论(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
小kk_p
阅读(702)
评论(0)
推荐(0)