机器学习
julicliy
这个作者很懒,什么都没留下…
展开
-
deepsort的参考文章
个人见解,deepsort权重,是为了级联匹配中的REID,也就是外观特征。目的,简单明确该算法需要那些步骤,这些步骤在算法中是什么角色。原创 2022-08-30 10:51:05 · 107 阅读 · 0 评论 -
anaconda 环境安装步骤
第一步,若之前配置了源,可选清除conda config --remove-key channels 第二步,添加清华源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --add原创 2022-04-06 20:13:07 · 1192 阅读 · 0 评论 -
anaconda 出现网络连接问题
1,解决方法如下:解决:An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent......_漩涡小林的博客-CSDN博客_an error occurred when转载 2022-02-25 13:11:37 · 724 阅读 · 0 评论 -
android 适配 yolov5s
android 使用ncnn适配yolov5s,踩的坑。原创 2022-01-19 12:11:26 · 2641 阅读 · 0 评论 -
转灰度图片,python 代码
def rgb2gray(img): r, g, b = img[:, :, 0], img[:, :, 1], img[:, :, 2] gray = 0.2989 * r + 0.5870 * g + 0.1140 * b return gray原创 2021-09-08 11:06:10 · 137 阅读 · 0 评论 -
最小二乘法 图像去噪(空间域)
简单理解:从一个3*3的邻域里,使用x,y坐标,作为输入(f(x,y) = ax2 + by2 + cxt + dx+ ey + f),x,y对应像素作为输出,构建一个矩阵(9*6)乘以一个未知数矩阵(6*1)得到输出矩阵(9*1),利用高斯消元法求出未知数f(因为要求的像素为x,y坐标为0),即可。f为消去噪声的像素值。我们注意到,对于原点(0,0),所以很自然的用高斯消去方法得到f就是我们所求的该点应该的像素值,不需要再去求其他五个参数了(这也是为什么我们要选用参照坐标系的原...转载 2021-07-26 15:11:25 · 757 阅读 · 0 评论 -
dwt2,db2小波实现代码原理,(python)
dwt2,db2小波import numpy as npimport mathimport pywt# s3 = math.sqrt(3)# d = 4*math.sqrt(2)s3 = math.sqrt(3)d = 4*math.sqrt(2)h0 = (1+s3)/dh1 = (3+s3)/dh2 = (3-s3)/dh3 = (1-s3)/dg0 = h3g1 = -h2g2 = h1g3 = -h0def Fwt(data): temp = [原创 2021-07-13 20:10:33 · 1131 阅读 · 0 评论 -
自定义小波,注意事项
一定的注意正交性,s3 = math.sqrt(2)d = 3*math.sqrt(2)h0 = (1+s3)/dh1 = (2+s3)/dh2 = (2-s3)/dh3 = (1-s3)/dg0 = h3g1 = -h2g2 = h1g3 = -h0其中,h0*h2+h1*h3 = 0原创 2021-07-13 15:03:28 · 82 阅读 · 0 评论 -
pywt 自定义小波(python)
如下,是自定义的db2小波import pywt, mathimport numpy as np# c = math.sqrt(2)/2# dec_lo, dec_hi, rec_lo, rec_hi = [c, c], [-c, c], [c, c], [c, -c]# filter_bank = [dec_lo, dec_hi, rec_lo, rec_hi]# myWavelet = pywt.Wavelet(name="myHaarWavelet", filter_bank=fi..原创 2021-07-13 14:25:55 · 1043 阅读 · 2 评论 -
db2的一维数据变换和逆变换(python)
import numpy as npimport mathimport pywts3 = math.sqrt(3)d = 4*math.sqrt(2)h0 = (1+s3)/dh1 = (3+s3)/dh2 = (3-s3)/dh3 = (1-s3)/dg0 = h3g1 = -h2g2 = h1g3 = -h0def Fwt(data): temp = [0]*(len(data)+4) temp[0] = data[1] temp[1] =.原创 2021-07-13 01:49:16 · 78 阅读 · 0 评论 -
计算敧异矩阵的逆矩阵
详细如下:https://blog.csdn.net/weixin_44378835/article/details/110816905转载 2021-07-08 10:17:11 · 70 阅读 · 0 评论 -
python 计算SVD
一行代码:u,s,v = np.linalg.svd(A)代码分解:import numpy as npdef get_A_1(B,C): C = np.matmul(C,np.transpose(C)) C_1 = np.linalg.inv(C) C_H = np.transpose(C) C_f = np.matmul(C_H,C_1) B = np.matmul(np.transpose(B),B) B_1 = np.linal原创 2021-07-07 19:36:19 · 674 阅读 · 0 评论 -
矩阵的广义逆
详情如下:https://zhuanlan.zhihu.com/p/162188888转载 2021-07-07 14:27:53 · 74 阅读 · 0 评论 -
奇异值分解(SVD)
具体如下:https://zhuanlan.zhihu.com/p/29846048转载 2021-07-07 14:19:09 · 62 阅读 · 0 评论 -
将数据写入xls(python)
1,这是将数据写入xls的程序# -*- coding: utf-8 -*-import xlsxwriter as xwdef xw_toExcel(data, fileName): # xlsxwriter库储存数据到excel workbook = xw.Workbook(fileName) # 创建工作簿 worksheet1 = workbook.add_worksheet("sheet1") # 创建子表 worksheet1.activate..原创 2021-04-09 12:56:42 · 1291 阅读 · 0 评论 -
利用xls下载链接下载资源
第一步:从xls提取相关下载链接,保存为txt文件第二步,从txt文件链接,通过程序进行下载# This is a sample Python script.# Press Shift+F10 to execute it or replace it with your code.# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings....原创 2021-04-09 12:33:29 · 420 阅读 · 0 评论 -
极限学习机(2)
如图,这是极限学习机所用到的三个脚本文件。原创 2021-01-22 22:04:57 · 85 阅读 · 0 评论 -
极限学习机分类算法(1)
原创 2021-01-22 21:58:49 · 562 阅读 · 0 评论