Commit c727dd02 authored by chenzk's avatar chenzk
Browse files

v1.2.1

parent 67a0c14f
Pipeline #514 failed with stage
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
- https://arxiv.org/abs/2010.11929 - https://arxiv.org/abs/2010.11929
## 模型结构 ## 模型结构
Vision Transformer先将图像用卷积进行分块以降低计算量,再对每一块进行展平处理变成序列,然后将序列添加位置编码和cls token,再输入多层Transformer结构提取特征,最后将cls tooken取出来通过一个MLP(多层感知机)用于分类。 Vision Transformer先将图像用卷积进行分块以降低计算量,再对每一块进行展平处理变成序列,然后将序列添加位置编码和cls token,再输入多层Transformer结构提取特征,最后将cls tooken取出来通过一个MLP(多层感知机)用于分类。
![img](./images/vit.png) ![img](./images/vit.png)
## 算法原理 ## 算法原理
图像领域借鉴《Transformer is all you need!》算法论文中的Encoder结构提取特征,Transformer的核心思想是利用注意力模块attention提取特征: 图像领域借鉴《Transformer is all you need!》算法论文中的Encoder结构提取特征,Transformer的核心思想是利用注意力模块attention提取特征:
![img](./images/attention.png) ![img](./images/attention.png)
## 环境配置 ## 环境配置
### Docker ### Docker
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment