摘要: #!/usr/bin/env python # -*- coding:utf-8-*- # file: model_test1.py # @author: jory.d # @contact: # @time: 2022/01/07 22:41 # @desc: 模型测试, 查看误检和漏检 """ 阅读全文
posted @ 2022-10-18 15:17 dangxusheng 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: CMakeList 内容: cmake_minimum_required(VERSION 3.14) project(demo) set(CMAKE_CXX_STANDARD 17) include_directories(3rd_party/stb) find_package(OpenCV REQ 阅读全文
posted @ 2022-10-18 15:12 dangxusheng 阅读(261) 评论(0) 推荐(0) 编辑
摘要: import os import os.path as osp import numpy as np from mmcv import Config from mmdet.models import build_detector import math import argparse import 阅读全文
posted @ 2022-10-18 15:10 dangxusheng 阅读(52) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8-*- import numpy as np from shapely.geometry import Point, LineString from shapely.geometry.polygon import Pol 阅读全文
posted @ 2022-07-13 23:36 dangxusheng 阅读(936) 评论(0) 推荐(0) 编辑
摘要: // // Created by DangXS on 2022/5/28. // #ifndef INIRW_H #define INIRW_H /** * 文件:inirw.h * 版本:1.0 * * 说明:ini配置文件读写 * 1、支持;和#注释符号,支持行尾注释。 * 2、支持带引号'或" 阅读全文
posted @ 2022-06-23 21:14 dangxusheng 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 1 UBUNTU 环境 cmake_minimum_required(VERSION 3.15) project(PhoneInHand_linux) set(CMAKE_CXX_STANDARD 14) #SET(LC_ALL "zh_CN.GB2312") #SET(LANG "zh_CN.GB 阅读全文
posted @ 2022-06-23 21:08 dangxusheng 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 1 安装环境依赖库 sudo apt-get update sudo apt-get install git build-essential linux-libc-dev sudo apt-get install cmake cmake-gui sudo apt-get install libusb 阅读全文
posted @ 2022-06-23 21:03 dangxusheng 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_38253797/article/details/116847588 import torch import torch.nn as nn import torch.nn.functional as F import numpy as np d 阅读全文
posted @ 2022-04-14 20:50 dangxusheng 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 参考url: https://mathpretty.com/12509.html 在调试过程中, 有时候我们需要对中间变量梯度进行监控, 以确保网络的有效性, 这个时候我们需要打印出非叶节点的梯度, 为了实现这个目的, 我们可以通过两种手段进行, 分别是: retain_grad() hook re 阅读全文
posted @ 2022-04-14 20:49 dangxusheng 阅读(610) 评论(0) 推荐(1) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8-*- # file: {NAME}.py # @author: jory.d # @contact: dangxusheng163@163.com # @time: 2021/06/29 22:09 # @desc: 阅读全文
posted @ 2022-02-13 21:33 dangxusheng 阅读(167) 评论(0) 推荐(0) 编辑