随笔分类 - 机器学习
摘要:import torch import torch.nn as nn ''' An alternative implementation for PyTorch with auto-infering the x-y dimensions. paper: An intriguing failing o
阅读全文
摘要: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
阅读全文
摘要:#下载包: git clone https://github.com/Tencent/ncnn.git git submodule update --init unzip ncnn-master cd ncnn-master # 安装环境依赖项 sudo apt install build-esse
阅读全文
摘要:https://hyper.ai/datasets https://www.cvmart.net/dataSets https://zhuanlan.zhihu.com/p/25138563 https://zhuanlan.zhihu.com/p/508111468 https://gas.gra
阅读全文
摘要:## 系统级别环境 sudo apt-get install python3.7-dev sudo apt-get install python3-pip python3.7 -m pip install --upgrade pip # 解码加速包,不同的环境可能会build失败 # 1.1 ubu
阅读全文
摘要:#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Jory.d @contact: 707564875@qq.com @site: @software: PyCharm @file: read_realsense_
阅读全文
摘要: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
阅读全文
摘要:参考url: https://mathpretty.com/12509.html 在调试过程中, 有时候我们需要对中间变量梯度进行监控, 以确保网络的有效性, 这个时候我们需要打印出非叶节点的梯度, 为了实现这个目的, 我们可以通过两种手段进行, 分别是: retain_grad() hook re
阅读全文
摘要:#!/usr/bin/python3 # _*_coding:utf-8 _*_ # @Time :2021/2/21 23:14 # @Author :jory.d # @File :roc_auc.py # @Software :PyCharm # @Desc: 绘制多分类的ROC AUC曲线
阅读全文
摘要:#!/usr/bin/python3 # _*_coding:utf-8 _*_ ''' 自定义重写 dataset,实现类别均衡,体现为 每个batch都可以按照自己设定得比例来采样,且支持多进程和分布式 ''' from check_pkgs import * import torch.dist
阅读全文
摘要:import torch import torch.nn as nn import torch.nn.functional as F class LSR(nn.Module): def __init__(self, n_classes=10, eps=0.1): super(LSR, self)._
阅读全文
摘要:不懂原理的同学请参考: https://blog.csdn.net/qq_43337858/article/details/102738352?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPa
阅读全文
摘要:from :https://www.dbs.ifi.lmu.de/~yu_k/icml2010_3dcnn.pdf > 2D-CNN > 3D-CNN > 可视化比较 from: http://cn.arxiv.org/pdf/1412.0767.pdf
阅读全文
摘要:参考URL: https://blog.csdn.net/z704630835/article/details/82992036 1 下载脚本 # 导入需要的库 import requests import os import json # 爬取百度图片,解析页面的函数 def getManyPag
阅读全文
摘要:1 卷积操作 2 反卷积操作 3 LSTM 4 GRU 5 Loss 6 optimizer
阅读全文
摘要:1 升级包 sudo apt-get update 2 卸载nvidia-385 旧驱动 3 安装新驱动 NVIDIA 440 https://blog.csdn.net/zhang970187013/article/details/81012845 4 安装cuda 9.0 5 安装cudnn 7
阅读全文
摘要:首先我们看看 2 维平面中姿态矩阵是如何平移、旋转和放缩物体: from: https://www.sohu.com/a/226611009_633698 def random_rotate_xy(img, box, angle_range=(-25, 25), scale_range=(0.80,
阅读全文
摘要:c++ 实现版本: 1 人脸检测 1.1 使用mtcnn-ncnn进行人脸检测,会输出face box和landmark5 face box: [x1,y1,x2,y2] landmark5: [left_eye,right_eye, nose, month_left, month_right] 2
阅读全文
摘要:#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/12/1 22:03 # @Author : dangxusheng # @Email : dangxusheng163@163.com # @File : center_los
阅读全文
摘要:https://blog.csdn.net/AI_focus/article/details/78339234 https://www.cnblogs.com/massquantity/p/8964029.html pytprch HingeLoss 的实现: """ 铰链损失 SVM hinge
阅读全文