会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Truman001
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
18
下一页
[置顶]
Variadic Templates 可变参数模板
摘要: Variadic Templates 基础知识 1 可变参数包,可以很方便的完成recursive function call(递归函数调用) 2 typename... Types || const Types&... args || print(args...) 三个点的位置是语法规定,不必深究
阅读全文
posted @ 2021-01-19 22:39 Truman001
阅读(153)
评论(0)
推荐(0)
2024年7月25日
VS配置C++_opencV
摘要: 配置opencV https://blog.csdn.net/qq_27825451/article/details/103036687
阅读全文
posted @ 2024-07-25 10:23 Truman001
阅读(12)
评论(0)
推荐(0)
ONNXRuntime_C++安装教程
摘要: 1 打开Visual Studio2017,新建空项目helloworld 2 浏览输入onnxruntime,安装第一个,版本选择1.18.1 3 配置PATH环境变量 4 配置项目包含目录 5 配置库目录 6 配置链接器 配置opencV https://blog.csdn.net/qq_278
阅读全文
posted @ 2024-07-25 10:23 Truman001
阅读(1119)
评论(0)
推荐(0)
2023年5月30日
yolov5内存分布分析
摘要: # yolov5内存分布分析 ## Transpose输出分析 假设batch_size为1,yolov5有三个输出,shape分别是: - (1,3,80,80,85) - (1,3,40,40,85) - (1,3,20,20,85) 其中3代表anchor数量,20*20代表feature_m
阅读全文
posted @ 2023-05-30 13:45 Truman001
阅读(243)
评论(0)
推荐(0)
2023年4月24日
python调用C/C++
摘要: python调用C/C++ 简单C函数(无参数无返回值) 1 编写C程序 // sample.c #include <stdio.h> void hello_world() { printf("Hello, world!\n"); } 2 编译C程序 gcc -shared -o libsample
阅读全文
posted @ 2023-04-24 20:21 Truman001
阅读(111)
评论(0)
推荐(0)
交叉编译
摘要: 安装命令 sudo apt-get install gcc-aarch64-linux-gnu sudo apt-get install g++-aarch64-linux-gnu 什么是交叉编译 解释什么是交叉编译之前,先要明白一个概念:本地编译 我们之前常见的软件开发,都是属于本地编译: 在当前
阅读全文
posted @ 2023-04-24 19:30 Truman001
阅读(364)
评论(0)
推荐(0)
2023年4月21日
Python调用C程序
摘要: 1.将C程序编译为动态库; 2.python代码加载动态库调用C函数
阅读全文
posted @ 2023-04-21 14:36 Truman001
阅读(47)
评论(0)
推荐(0)
Python程序运行原理
摘要: Python 是一种解释型语言(先编译后解释语言),不需要编译成可执行文件,而是在运行时逐行解释执行,故运行效率相比C/C++较低。Python 的运行原理可以简单地概括为以下几个步骤: 词法分析和语法分析:Python 解释器会将源代码进行词法分析,将代码转换为一系列的 Token(即词法单元)。
阅读全文
posted @ 2023-04-21 14:35 Truman001
阅读(1182)
评论(0)
推荐(0)
2023年3月23日
模型权重初始化
摘要: def weight_init(m): # 初始化权重 # print(m) if isinstance(m, torch.nn.Conv3d): n = m.kernel_size[0] * m.kernel_size[1] * m.kernel_size[2] * m.out_channels
阅读全文
posted @ 2023-03-23 14:22 Truman001
阅读(53)
评论(0)
推荐(0)
onnx模型获取每一层的属性
摘要: import onnx # 加载ONNX模型 model_path = "model.onnx" model = onnx.load(model_path) # 遍历模型的图结构,获取每一层的节点属性 for node in model.graph.node: # 输出节点名称和类型 print(f
阅读全文
posted @ 2023-03-23 14:20 Truman001
阅读(1147)
评论(0)
推荐(1)
python 循环写文件
摘要: import random my_list = [1, 2, 3, 4, 5] random_number = random.choice(my_list) print(random_number)
阅读全文
posted @ 2023-03-23 14:18 Truman001
阅读(41)
评论(0)
推荐(0)
1
2
3
4
5
···
18
下一页
公告