摘要: 实现功能:输入为图像路径列表,根据图像名称中的数字大小实现图像路径的排序 from functools import cmp_to_key def get_suffix(filename): """a.jpg -> jpg""" pos = filename.rfind('.') if pos == 阅读全文
posted @ 2020-11-02 10:55 吾家木水 阅读(358) 评论(0) 推荐(0) 编辑
摘要: set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_CXX_FLAGS "-std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_CURRENT_SO 阅读全文
posted @ 2020-09-18 17:48 吾家木水 阅读(442) 评论(0) 推荐(0) 编辑
摘要: cpp模块备忘录,经常经常用到的函数快 读取txt文件数据到数组中,输入txt文件路径,分隔符,输出为数组 #include <iostream> #include <cstring> #include <string> using namespace std; void ReadDataFromF 阅读全文
posted @ 2020-09-17 10:02 吾家木水 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 用imglab做物体特征点标注,将标注数据转为coco keypoints数据集转换代码: 阅读全文
posted @ 2020-05-22 16:13 吾家木水 阅读(534) 评论(2) 推荐(1) 编辑
摘要: 依赖环境 1. 系统环境 gcc/g++ 7 cuda 10.1 2. conda环境 阅读全文
posted @ 2020-05-05 23:54 吾家木水 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 之前用detectron2 的keypoint_rcnn训练自己的数据集完成物体特征点检测,这篇文章是将pytorch模型转为c++调用的形式。 实现效果: Detectron2 提供了将pytorch模型转为c++调用的例程: "Deployment" ,gpu版本的模型转换需要pytorch版本 阅读全文
posted @ 2020-05-03 16:44 吾家木水 阅读(1819) 评论(34) 推荐(0) 编辑