摘要: torch_utils.py解读 # YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ PyTorch utils """ import math import os import platform # 提供获取操作系统相关信息的模块 import subprocess # 子进程定义及操作 阅读全文
posted @ 2022-08-22 17:43 warmhearthhh 阅读(366) 评论(0) 推荐(0) 编辑
摘要: #ssh 登录 ##远程登录服务器 ssh user@hostname ##配置文件 创建文件 ~/.ssh/config #config的文件内容 Host myserver1 HostName IP地址或域名 User 用户名 Host myserver2 HostName IP地址或域名 Us 阅读全文
posted @ 2022-04-20 14:24 warmhearthhh 阅读(48) 评论(0) 推荐(0) 编辑
摘要: IOU:(Intersection over union) 简述: 交集和并集的比值 将我们图片汽车的实际红色框记为A,算法的预测框记为B,交并比就是数学中A和B的交集A∩B跟A和B的并集的A∪B的面积之比,非常容易理解。IOU实际上衡量了两个边界框重叠地相对大小,预测框和真实框重叠越大, 说明你的 阅读全文
posted @ 2022-08-22 17:58 warmhearthhh 阅读(356) 评论(0) 推荐(0) 编辑
摘要: #客户端 package main import ( "bufio" "fmt" "net" "os" "strings" ) func main() { conn, err:=net.Dial("tcp","127.0.0.1:8888"); if err != nil{ fmt.Printf(" 阅读全文
posted @ 2022-05-24 16:33 warmhearthhh 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #goroutine: 本质是协程,是实现并行计算的核心。 goroutine使用方式非常的简单,只需使用go关键字即可启动一个协程,并且它是处于异步方式运行,你不需要等它运行完成以后在执行以后的代码。 ##启动一个协程 go func()//通过go关键字启动一个协程来运行函数 #go协程和cha 阅读全文
posted @ 2022-05-13 13:57 warmhearthhh 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #常用类型与string转换 strconv包实现了基本数据类型和其字符串表示的相互转换。 package main import ( "fmt" "strconv" ) func main() { var num1 int=90; var num2 float64=23.456; var b bo 阅读全文
posted @ 2022-05-12 18:57 warmhearthhh 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #数据类型 强类型语言 ##布尔型 布尔型的值只可以是常量 true 或者 false。 一个简单的例子:var b bool = true。 ##数字类型 整型 int 和浮点型 float32、float64,Go 语言支持整型和浮点型数字,并且支持复数,其中位的运算采用补码。 ##字符串类型 阅读全文
posted @ 2022-05-07 22:04 warmhearthhh 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 开发工具 Visual Studio Code starUML #UML类图及类与类之间的关系 在系统分析与设计阶段,类通常可以分为三种,分别是实体类(Entity Class)、控制类(Control Class)和边界类(Boundary Class),下面对这三种类加以简要说明: (1) 实体 阅读全文
posted @ 2022-05-05 10:17 warmhearthhh 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #1.git一些基本概念 Git是一个开源的分布式版本控制系统(Distributed Version Control System,简称 DVCS) ,在项目开发过程中,我们可以用它记录我们对项目的操作记录以及项目迭代过程。 工作区:仓库的目录。工作区是独立于各个分支的。 暂存区:数据暂时存放的区 阅读全文
posted @ 2022-04-25 14:46 warmhearthhh 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #list ##List是stl实现的双向链表,与向量(vectors)相比, 它允许快速的插入和删除,但是随机访问却比较慢。 List #vector ##注意vector内存释放 vector 由于vector的内存占用空间只增不减,比如你首先分配了10,000个字节,然后erase掉后面9,9 阅读全文
posted @ 2022-04-21 11:18 warmhearthhh 阅读(35) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <memory> class parent; class children; class parent { public: ~parent() { std::cout << "~parent()" << s 阅读全文
posted @ 2022-04-20 15:08 warmhearthhh 阅读(168) 评论(0) 推荐(0) 编辑