随笔分类 -  深度学习

摘要:#!/usr/bin/env python # -*- coding:utf-8-*- # file: test_mnist_centerloss.py # @author: jory.d # @contact: dangxusheng163@163.com # @time: 2019/11/29 阅读全文
posted @ 2024-11-25 22:23 dangxusheng 阅读(109) 评论(0) 推荐(0) 编辑
摘要:import torch import torch.nn as nn ''' An alternative implementation for PyTorch with auto-infering the x-y dimensions. paper: An intriguing failing o 阅读全文
posted @ 2023-02-07 22:31 dangxusheng 阅读(91) 评论(0) 推荐(0) 编辑
摘要:CMakeList.txt内容 cmake_minimum_required(VERSION 3.10) project(tnn_test_aarch) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FL 阅读全文
posted @ 2022-12-11 18:09 dangxusheng 阅读(223) 评论(0) 推荐(0) 编辑
摘要:#下载包: git clone https://github.com/Tencent/ncnn.git git submodule update --init unzip ncnn-master cd ncnn-master # 安装环境依赖项 sudo apt install build-esse 阅读全文
posted @ 2022-11-29 22:09 dangxusheng 阅读(266) 评论(0) 推荐(0) 编辑
摘要:https://hyper.ai/datasets https://www.cvmart.net/dataSets https://zhuanlan.zhihu.com/p/25138563 https://zhuanlan.zhihu.com/p/508111468 https://gas.gra 阅读全文
posted @ 2022-11-23 09:42 dangxusheng 阅读(677) 评论(0) 推荐(0) 编辑
摘要:## 系统级别环境 sudo apt-get install python3.7-dev sudo apt-get install python3-pip python3.7 -m pip install --upgrade pip # 解码加速包,不同的环境可能会build失败 # 1.1 ubu 阅读全文
posted @ 2022-11-22 20:44 dangxusheng 阅读(1671) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Jory.d @contact: 707564875@qq.com @site: @software: PyCharm @file: ncnn_basenet.py 阅读全文
posted @ 2022-11-11 18:34 dangxusheng 阅读(962) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Jory.d @contact: 707564875@qq.com @site: @software: PyCharm @file: read_realsense_ 阅读全文
posted @ 2022-11-09 11:14 dangxusheng 阅读(2922) 评论(0) 推荐(0) 编辑
摘要:以mmdetection工程为例 1 ubuntu使用sh套py脚本来调用 train.sh #!/usr/bin/env bash CONFIG=configs/xx/cfg_1.py WORK_DIR=train_result/20220825 CKPT=train_result/2022070 阅读全文
posted @ 2022-10-18 15:35 dangxusheng 阅读(74) 评论(0) 推荐(0) 编辑
摘要:参考 https://blog.csdn.net/luolinll1212/article/details/106061943 1 c++ 实现 2 编写pybind11的代码 #include "pybind11/pybind11.h" #include "pybind11/numpy.h" #i 阅读全文
posted @ 2022-10-18 15:24 dangxusheng 阅读(364) 评论(0) 推荐(0) 编辑
摘要:#!/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 阅读(1460) 评论(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 阅读(312) 评论(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 阅读(60) 评论(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 阅读(377) 评论(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 阅读(358) 评论(0) 推荐(0) 编辑
摘要:参考url: https://mathpretty.com/12509.html 在调试过程中, 有时候我们需要对中间变量梯度进行监控, 以确保网络的有效性, 这个时候我们需要打印出非叶节点的梯度, 为了实现这个目的, 我们可以通过两种手段进行, 分别是: retain_grad() hook re 阅读全文
posted @ 2022-04-14 20:49 dangxusheng 阅读(742) 评论(0) 推荐(1) 编辑
摘要:#!/usr/bin/python3 # _*_coding:utf-8 _*_ # @Time :2021/2/21 23:14 # @Author :jory.d # @File :roc_auc.py # @Software :PyCharm # @Desc: 绘制多分类的ROC AUC曲线 阅读全文
posted @ 2021-03-10 22:47 dangxusheng 阅读(389) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python3 # _*_coding:utf-8 _*_ ''' 自定义重写 dataset,实现类别均衡,体现为 每个batch都可以按照自己设定得比例来采样,且支持多进程和分布式 ''' from check_pkgs import * import torch.dist 阅读全文
posted @ 2021-02-06 18:47 dangxusheng 阅读(2896) 评论(0) 推荐(0) 编辑
摘要:参考博客:http://aiuai.cn/aifarm1340.htmlhttps://yangkky.github.io/2019/07/08/distributed-pytorch-tutorial.html pytorch里DataParallel 和 DistributedParallel 阅读全文
posted @ 2021-02-06 18:28 dangxusheng 阅读(396) 评论(0) 推荐(0) 编辑
摘要:不懂原理的同学请参考: https://blog.csdn.net/qq_43337858/article/details/102738352?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPa 阅读全文
posted @ 2021-02-06 17:55 dangxusheng 阅读(1352) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示