<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_37699342的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_37699342</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_37699342]]></copyright><item><title><![CDATA[Nvidia英伟达Bert .pt/.bin PyTorch模型导出onnx]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130261823</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130261823</guid><author>weixin_37699342</author><pubDate>Thu, 20 Apr 2023 11:17:18 +0800</pubDate><description><![CDATA[c. 注释掉以下代码块，因为报错RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int;b. 注释掉以下代码块，因为非GPU环境下无法安装使用apex。d. 插入torch.onnx.export方法以导出onnx。a. 删除以下代码，因为未使用gpu。b. 安装dllogger包。a. 设置python路径。a. 导入onnx模块。]]></description><category></category></item><item><title><![CDATA[resnet/dssm/roformer修改onnx节点]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130149468</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130149468</guid><author>weixin_37699342</author><pubDate>Fri, 14 Apr 2023 11:28:44 +0800</pubDate><description><![CDATA[为定位该精度问题，对 onnx 模型进行切图操作，通过指定新的 output 节点，对比输出内容来判断出错节点。输入 input_token 为 float16，转 int 出现精度问题，手动修改模型输入接受 int32 类型的 input_token。修改 onnx 模型，将 Initializer 类型常量改为 Constant 类型图节点，问题解决。手动修改 onnx 模型，将 pad 和 下面的 max_pool2d 合并，问题解决。from_onnx 中添加参数。]]></description><category></category></item><item><title><![CDATA[pb/h5/torch转onnx]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130149421</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130149421</guid><author>weixin_37699342</author><pubDate>Fri, 14 Apr 2023 11:15:26 +0800</pubDate><description><![CDATA[,),]]></description><category></category></item><item><title><![CDATA[Bert模型预训练介绍与使用]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130148317</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130148317</guid><author>weixin_37699342</author><pubDate>Fri, 14 Apr 2023 10:45:49 +0800</pubDate><description><![CDATA[目录

预训练

本节概要

介绍

配置

预训练Bert模型

使用预训练的Bert模型

本节概要

谷歌bert仓库介绍

预训练

本节概要

bert模型是只有编码器的transformer，用于理解语境
	谷歌官方基于不同编码器层数和隐藏神经元数提供了不同的模型配置
	预训练过程：输入数据-分词-添加CLS和SEP-掩码和预测-三个嵌入层-嵌入值相加得到嵌入向量-bert模型得到特征向量-送入使用softmax的前馈网络层得到预测的掩码或分类概率-多次迭代优化权重


介绍

bert是上下]]></description><category></category></item><item><title><![CDATA[Transformer]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130147875</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130147875</guid><author>weixin_37699342</author><pubDate>Fri, 14 Apr 2023 10:32:02 +0800</pubDate><description><![CDATA[解法：Transformer就是为了解决这个问题，将句子中的所有词并行送入神经网络，它整合了编码器和解码器用于自然语言处理任务，替代了RNN和LSTM，衍生出Bert、GPT-3等知名架构。问题：循环神经网络RNN和长短期记忆网络LSTM无法记录长期依赖。RNN是将句子中的词逐个送入神经网络。前馈网络层：两个ReLU激活函数的全连接层。止每层的值剧烈变化，提高训练速度。]]></description><category></category></item><item><title><![CDATA[实战谷歌Bert处理中文数据集cnews]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/130147068</link><guid>https://blog.csdn.net/weixin_37699342/article/details/130147068</guid><author>weixin_37699342</author><pubDate>Fri, 14 Apr 2023 10:21:40 +0800</pubDate><description><![CDATA[代码全流程！谷歌bert模型fine tune新的中文数据集，生成pb文件，再转onnx。]]></description><category></category></item><item><title><![CDATA[bert模型全攻略]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/129882523</link><guid>https://blog.csdn.net/weixin_37699342/article/details/129882523</guid><author>weixin_37699342</author><pubDate>Fri, 31 Mar 2023 16:55:32 +0800</pubDate><description><![CDATA[手把手实现bert模型fine tune、转出pb、转出onnx。]]></description><category></category></item><item><title><![CDATA[深度学习（五）迁移学习（实战：新数据预测+vgg16和聚类预测）]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/129556642</link><guid>https://blog.csdn.net/weixin_37699342/article/details/129556642</guid><author>weixin_37699342</author><pubDate>Fri, 17 Mar 2023 14:21:50 +0800</pubDate><description><![CDATA[6、成功引入PCA数据降维技术，剔除了数据中的噪音信息、降低了模型复杂度、减少了模型训练时间，并最终提高了模型表现；gen=datagen.flow_from_directory(path,target_size=(224,224),batch_size=2,save_to_dir=dst_path,save_prefix='gen',save_format='jpg') # 生成图片大小224*224，bs产生多少组图像，存储路径和前缀。1、通过使用新数据，实现了模型的2次训练，达到了较好的预测效果；]]></description><category></category></item><item><title><![CDATA[动手学深度学习（二）数据操作+数据预处理]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/121975537</link><guid>https://blog.csdn.net/weixin_37699342/article/details/121975537</guid><author>weixin_37699342</author><pubDate>Thu, 16 Mar 2023 16:40:54 +0800</pubDate><description><![CDATA[torch.cat((X, Y), dim=0), torch.cat((X, Y), dim=1) # 在第几维拼接。y = torch.tensor([[1.0, 2, 3], [1, 2, 3]]) # 创建数组。a = torch.arange(3).reshape((3, 1)) # 将1复制成2。b = torch.arange(2).reshape((1, 2)) # 将1复制成3。torch.ones((2, 3, 4)) # 使矩阵内元素全1。1维：向量，[1,2,3]，一个特征向量。]]></description><category></category></item><item><title><![CDATA[读取及合并minio上csv文件，处理数据结构，保存至本地]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/128239827</link><guid>https://blog.csdn.net/weixin_37699342/article/details/128239827</guid><author>weixin_37699342</author><pubDate>Thu, 08 Dec 2022 16:59:26 +0800</pubDate><description><![CDATA[读取及合并minio上csv文件，处理数据结构，保存至本地]]></description><category></category></item><item><title><![CDATA[skip-gram模型处理文本]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122809075</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122809075</guid><author>weixin_37699342</author><pubDate>Mon, 07 Feb 2022 16:29:50 +0800</pubDate><description><![CDATA[目录

理论基础

代码总架构

代码实战

1. 导入包

2. 从文件中提取停止词和训练文本

3. 建立词典以及生僻词用UNK代替

4. 为skipgram生成训练参数

5. 构建模型

6. 调用负采样，抽取管检测

7. 准确率

8. 输出词向量

理论基础

词向量计算工具word2vec，采用了两种语言模型：

CBOW：周围词预测中心词
	skip gram：中心词预测周围词
权重

负采样

代码总架构

导入包
	从文件中提取停止词和训练文本
	建立词典以及生僻词
	为skipgr]]></description><category></category></item><item><title><![CDATA[mnist数据集LR实战]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122805101</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122805101</guid><author>weixin_37699342</author><pubDate>Mon, 07 Feb 2022 14:58:08 +0800</pubDate><description><![CDATA[机器学习简要介绍，NLP基础+实战 让机器“写小说”教程-慕课网 (imooc.com)

目录

配置

代码

数据集导入及处理

创建神经网络

计算损失函数

采用adam自适应学习率优化器

计算准确率

session封装模型

运行结果

配置

anaconda+pycharm+virtualenv环境



代码

数据集导入及处理







mnist 6w训练数据，1w测试数据，按批次batch size存入内存，共有n batch个批次

placeholder存放外部输入的数.]]></description><category></category></item><item><title><![CDATA[深度学习编译器]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122448303</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122448303</guid><author>weixin_37699342</author><pubDate>Wed, 12 Jan 2022 19:12:01 +0800</pubDate><description><![CDATA[深度学习

1. 训练框架：

Google的TensorFlow：项目部署落地

FaceBook的Pytorch：易用性

另外亚马逊的MxNet

百度的Paddle

旷视的MegEngine

华为的Mindspore

一流科技的OneFlow：分布式训练最快


无论选择何种训练框架训练模型，我们最终都是要将训练好的模型部署到实际场景的。


2. 模型部署的设备：Intel CPU/Nvidia GPU/Intel GPU/Arm CPU/Arm GPU/FPGA/NPU(华为海思)/BPU]]></description><category></category></item><item><title><![CDATA[推荐算法（二）DeepFM]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122172999</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122172999</guid><author>weixin_37699342</author><pubDate>Mon, 27 Dec 2021 16:26:29 +0800</pubDate><description><![CDATA[PNN：在P部分会损失一些关键信息，因为使用的是降维
	DeepCrossing：会将所有特征进行交叉，没有针对性
	简单模型：泛化能力不足，忽略高阶的交互
	FM：只考虑二阶交叉，高阶会增加计算量，复杂度高
	DNN/MLP：天然高阶，低阶的交叉会忽略
DeepFM理论：

组合其他模型，改进了LR、FM、DNN。在wide&amp;deep的基础上，将wide部分的LR，换成能考虑低阶交叉的FM



层级结构



特征域 sparse features作为第一层，稀疏，然后放入de...]]></description><category></category></item><item><title><![CDATA[推荐算法（一）电影推荐系统]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122168648</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122168648</guid><author>weixin_37699342</author><pubDate>Mon, 27 Dec 2021 15:06:56 +0800</pubDate><description><![CDATA[目录

一、推荐系统基本概念

1. 基于内容的推荐系统

2. 基于矩阵分解的协同过滤

3. 基于item的协同过滤

4. 基于用户的协同过滤

5. 冷启动问题 cold start

6. 混合算法

7. 推荐系统性能评估

线下评估

线上评估

二、使用TF构建电影推荐系统

1. 数据收集

2. 数据准备

3. 构建模型

4. 模型训练

5. 模型评估

6. 构建完整的电影推荐系统

一、推荐系统基本概念

1. 基于内容的推荐系统


给定电影部分评分表和电影内容矩阵X，求解用]]></description><category></category></item><item><title><![CDATA[计算机视觉（四）全连接神经网络MLP]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122044491</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122044491</guid><author>weixin_37699342</author><pubDate>Tue, 21 Dec 2021 17:11:04 +0800</pubDate><description><![CDATA[目录

多层感知器/全连接神经网络

一、全连接神经网络绘制

二、激活函数

常用的激活函数

三、网络结构设计

四、损失函数

softmax

交叉熵损失

对比多类支持向量机损失

五、优化算法

计算图与反向传播

计算图的颗粒度（例子）

常见的门单元

激活函数

六、梯度算法改进

梯度下降算法存在的问题

动量法

自适应梯度（AdaGrad，RMSProp）

ADAM

七、训练过程

随机权值初始化：保证正反向传递

批归一化Batch Normal：保证正反向传递

欠拟合，过拟]]></description><category></category></item><item><title><![CDATA[计算机视觉（三）线性分类器]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122038722</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122038722</guid><author>weixin_37699342</author><pubDate>Mon, 20 Dec 2021 16:27:54 +0800</pubDate><description><![CDATA[目录

线性分类器

数据集介绍

分类器设计

图像类型

图像表示

选择分类模型

线性分类器

权值w

分界面/决策边界

损失函数

多类支持向量机损失

正则项

超参数

L2正则项

L1正则项

优化算法（梯度下降）

梯度下降算法

随机梯度下降算法

小批量梯度下降算法

数据集划分

训练数据

测试数据

验证数据

K折交叉验证

数据预处理


线性分类器

数据集介绍

CIFAR10，5w张训练样本，1w张测试样本，含飞机、汽车、鸟、猫、船、卡车等十个类别图像均为彩色图像]]></description><category></category></item><item><title><![CDATA[计算机视觉（二）图像分类]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122036935</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122036935</guid><author>weixin_37699342</author><pubDate>Mon, 20 Dec 2021 12:28:15 +0800</pubDate><description><![CDATA[目录

一、图像分类

难点：对问题的拆解

目前流行的图像分类方法

分类器设计与学习

图像表示

分类器

损失函数

优化算法

训练过程

评价指标


一、图像分类

图像分类：核心任务，根据图像信息中的不同特征，对图像进行分类。从已知的类别标签集合中为给定的输入图片选定一个类别标签。

应用：软件识图



难点：对问题的拆解

语义到像素的映射：像素是底层的用字节表示，语义是高层的
	视角：人脸正面与侧面
	光照：光线变化
	尺度：尺度大小是相对的，自适应远近
	遮挡：
	形变：猫
	背景杂]]></description><category></category></item><item><title><![CDATA[计算机视觉（一）介绍]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/122011682</link><guid>https://blog.csdn.net/weixin_37699342/article/details/122011682</guid><author>weixin_37699342</author><pubDate>Sat, 18 Dec 2021 15:34:38 +0800</pubDate><description><![CDATA[内容

使用卷积神经网络：图像分类，目标检测，图像分割，图像描述，图像生成

深度网络结构：全连接，卷积，循环，变分自编码，生成对抗GAN

共计15课，每课约1h30m

介绍
	图像分类任务介绍
	线性分类器
	全连接神经网络
	卷积&amp;图像去噪&amp;边缘提取
	纹理表示
	卷积神经网络
	经典网络分析
	图像分割
	目标检测
	可视化
	生成模型VAE
	生成模型GAN
	GAN论文分析




应用

视频和图像处理：归类，优化
	摄像机：足球门线处理
	监控：车牌，人脸识别
	医学：..]]></description><category></category></item><item><title><![CDATA[动手学深度学习（一）机器学习介绍]]></title><link>https://blog.csdn.net/weixin_37699342/article/details/121974593</link><guid>https://blog.csdn.net/weixin_37699342/article/details/121974593</guid><author>weixin_37699342</author><pubDate>Thu, 16 Dec 2021 15:14:26 +0800</pubDate><description><![CDATA[介绍


自然语言处理：语言翻译，符号学+概率模型+机器学习



计算机视觉：概率模型+机器学习



深度学习：机器学习

图片分类：imagenet数据集中约100万张图片
	物体检测
	样式迁移
	人脸合成
	文字生成图片
	文字生成：文章，代码
	无人驾驶：物体检测，路线识别
案例（广告点击）：

根据用户输入提供广告
	问题分为三个阶段：
触发：根据输入关键字找到相关广告
	点击率预估（机器学习）：看到广告之后预测点击的概率
	排序：点击率*竞价
机器学习模型：预测点击率：看到广告--特征提取-]]></description><category></category></item></channel></rss>