Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xmu-xiaoma666 committed Sep 20, 2021
1 parent 223e44f commit 059edb9
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ $ pip install fightingcv
#### 1.2. Overview
![](./fightingcv/img/External_Attention.png)

#### 1.3. Code
#### 1.3. Usage Code
```python
from fightingcv.attention.ExternalAttention import ExternalAttention
import torch
Expand All @@ -254,7 +254,7 @@ print(output.shape)
#### 1.2. Overview
![](./fightingcv/img/SA.png)

#### 1.3. Code
#### 1.3. Usage Code
```python
from fightingcv.attention.SelfAttention import ScaledDotProductAttention
import torch
Expand All @@ -274,7 +274,7 @@ print(output.shape)
#### 3.2. Overview
![](./fightingcv/img/SSA.png)

#### 3.3. Code
#### 3.3. Usage Code
```python
from fightingcv.attention.SimplifiedSelfAttention import SimplifiedScaledDotProductAttention
import torch
Expand All @@ -295,7 +295,7 @@ print(output.shape)
#### 4.2. Overview
![](./fightingcv/img/SE.png)

#### 4.3. Code
#### 4.3. Usage Code
```python
from fightingcv.attention.SEAttention import SEAttention
import torch
Expand All @@ -316,7 +316,7 @@ print(output.shape)
#### 5.2. Overview
![](./fightingcv/img/SK.png)

#### 5.3. Code
#### 5.3. Usage Code
```python
from fightingcv.attention.SKAttention import SKAttention
import torch
Expand All @@ -338,7 +338,7 @@ print(output.shape)

![](./fightingcv/img/CBAM2.png)

#### 6.3. Code
#### 6.3. Usage Code
```python
from fightingcv.attention.CBAM import CBAMBlock
import torch
Expand All @@ -360,7 +360,7 @@ print(output.shape)
#### 7.2. Overview
![](./fightingcv/img/BAM.png)

#### 7.3. Code
#### 7.3. Usage Code
```python
from fightingcv.attention.BAM import BAMBlock
import torch
Expand All @@ -381,7 +381,7 @@ print(output.shape)
#### 8.2. Overview
![](./fightingcv/img/ECA.png)

#### 8.3. Code
#### 8.3. Usage Code
```python
from fightingcv.attention.ECAAttention import ECAAttention
import torch
Expand All @@ -402,7 +402,7 @@ print(output.shape)
#### 9.2. Overview
![](./fightingcv/img/danet.png)

#### 9.3. Code
#### 9.3. Usage Code
```python
from fightingcv.attention.DANet import DAModule
import torch
Expand All @@ -423,7 +423,7 @@ print(danet(input).shape)
#### 10.2. Overview
![](./fightingcv/img/psa.png)

#### 10.3. Code
#### 10.3. Usage Code
```python
from fightingcv.attention.PSA import PSA
import torch
Expand All @@ -446,7 +446,7 @@ print(output.shape)
#### 11.2. Overview
![](./fightingcv/img/EMSA.png)

#### 11.3. Code
#### 11.3. Usage Code
```python

from fightingcv.attention.EMSA import EMSA
Expand All @@ -472,7 +472,7 @@ print(output.shape)
#### 12.2. Overview
![](./fightingcv/img/ShuffleAttention.jpg)

#### 12.3. Code
#### 12.3. Usage Code
```python

from fightingcv.attention.ShuffleAttention import ShuffleAttention
Expand Down Expand Up @@ -501,7 +501,7 @@ print(output.shape)
#### 13.2. Overview
![](./fightingcv/img/MUSE.png)

#### 13.3. Code
#### 13.3. Usage Code
```python
from fightingcv.attention.MUSEAttention import MUSEAttention
import torch
Expand All @@ -527,7 +527,7 @@ print(output.shape)
#### 14.2. Overview
![](./fightingcv/img/SGE.png)

#### 14.3. Code
#### 14.3. Usage Code
```python
from fightingcv.attention.SGE import SpatialGroupEnhance
import torch
Expand All @@ -552,7 +552,7 @@ print(output.shape)
#### 15.2. Overview
![](./fightingcv/img/A2.png)

#### 15.3. Code
#### 15.3. Usage Code
```python
from fightingcv.attention.A2Atttention import DoubleAttention
import torch
Expand All @@ -576,7 +576,7 @@ print(output.shape)
#### 16.2. Overview
![](./fightingcv/img/AFT.jpg)

#### 16.3. Code
#### 16.3. Usage Code
```python
from fightingcv.attention.AFT import AFT_FULL
import torch
Expand Down Expand Up @@ -606,7 +606,7 @@ print(output.shape)
#### 17.2. Overview
![](./fightingcv/img/OutlookAttention.png)

#### 17.3. Code
#### 17.3. Usage Code
```python
from fightingcv.attention.OutlookAttention import OutlookAttention
import torch
Expand Down Expand Up @@ -639,7 +639,7 @@ print(output.shape)
#### 18.2. Overview
![](./fightingcv/img/ViP.png)

#### 18.3. Code
#### 18.3. Usage Code
```python

from fightingcv.attention.ViP import WeightedPermuteMLP
Expand Down Expand Up @@ -674,7 +674,7 @@ print(out.shape)
None


#### 19.3. Code
#### 19.3. Usage Code
```python

from fightingcv.attention.CoAtNet import CoAtNet
Expand Down Expand Up @@ -709,7 +709,7 @@ print(out.shape)

![](./fightingcv/img/HaloNet.png)

#### 20.3. Code
#### 20.3. Usage Code
```python

from fightingcv.attention.HaloAttention import HaloAttention
Expand Down Expand Up @@ -740,7 +740,7 @@ print(output.shape)

![](./fightingcv/img/PoSA.png)

#### 21.3. Code
#### 21.3. Usage Code
```python

from fightingcv.attention.PolarizedSelfAttention import ParallelPolarizedSelfAttention,SequentialPolarizedSelfAttention
Expand Down Expand Up @@ -771,7 +771,7 @@ print(output.shape)

![](./fightingcv/img/CoT.png)

#### 22.3. Code
#### 22.3. Usage Code
```python

from fightingcv.attention.CoTAttention import CoTAttention
Expand Down Expand Up @@ -802,7 +802,7 @@ print(output.shape)

![](./fightingcv/img/ResAtt.png)

#### 23.3. Code
#### 23.3. Usage Code
```python

from fightingcv.attention.ResidualAttention import ResidualAttention
Expand Down Expand Up @@ -834,7 +834,7 @@ print(output.shape)

![](./fightingcv/img/S2Attention.png)

#### 24.3. Code
#### 24.3. Usage Code
```python
from fightingcv.attention.S2Attention import S2Attention
import torch
Expand Down Expand Up @@ -863,7 +863,7 @@ print(output.shape)

![](./fightingcv/img/GFNet.jpg)

#### 25.3. Code - Implemented by [Wenliang Zhao (Author)](https://scholar.google.com/citations?user=lyPWvuEAAAAJ&hl=en)
#### 25.3. Usage Code - Implemented by [Wenliang Zhao (Author)](https://scholar.google.com/citations?user=lyPWvuEAAAAJ&hl=en)

```python
from fightingcv.attention.gfnet import GFNet
Expand Down Expand Up @@ -892,7 +892,7 @@ print(out.shape)

![](./fightingcv/img/triplet.png)

#### 26.3. Code - Implemented by [digantamisra98](https://github.com/digantamisra98)
#### 26.3. Usage Code - Implemented by [digantamisra98](https://github.com/digantamisra98)

```python
from fightingcv.attention.TripletAttention import TripletAttention
Expand Down Expand Up @@ -924,7 +924,7 @@ print(output.shape)
![](./fightingcv/img/resnet.png)
![](./fightingcv/img/resnet2.jpg)

#### 1.3. Code
#### 1.3. Usage Code
```python

from fightingcv.backbone_cnn.resnet import ResNet50,ResNet101,ResNet152
Expand All @@ -948,7 +948,7 @@ if __name__ == '__main__':
#### 2.2. Overview
![](./fightingcv/img/resnext.png)

#### 2.3. Code
#### 2.3. Usage Code
```python

from fightingcv.backbone_cnn.resnext import ResNeXt50,ResNeXt101,ResNeXt152
Expand Down Expand Up @@ -995,7 +995,7 @@ if __name__ == '__main__':
#### 1.2. Overview
![](./fightingcv/img/repmlp.png)

#### 1.3. Code
#### 1.3. Usage Code
```python
from fightingcv.mlp.repmlp import RepMLP
import torch
Expand Down Expand Up @@ -1037,7 +1037,7 @@ print(((deployout-out)**2).sum())
#### 2.2. Overview
![](./fightingcv/img/mlpmixer.png)

#### 2.3. Code
#### 2.3. Usage Code
```python
from fightingcv.mlp.mlp_mixer import MlpMixer
import torch
Expand All @@ -1056,7 +1056,7 @@ print(output.shape)
#### 3.2. Overview
![](./fightingcv/img/resmlp.png)

#### 3.3. Code
#### 3.3. Usage Code
```python
from fightingcv.mlp.resmlp import ResMLP
import torch
Expand All @@ -1076,7 +1076,7 @@ print(out.shape) #the last dimention is class_num
#### 4.2. Overview
![](./fightingcv/img/gMLP.jpg)

#### 4.3. Code
#### 4.3. Usage Code
```python
from fightingcv.mlp.g_mlp import gMLP
import torch
Expand All @@ -1100,7 +1100,7 @@ print(output.shape)
#### 5.2. Overview
![](./fightingcv/img/sMLP.jpg)

#### 5.3. Code
#### 5.3. Usage Code
```python
from fightingcv.mlp.sMLP_block import sMLPBlock
import torch
Expand Down Expand Up @@ -1133,7 +1133,7 @@ if __name__ == '__main__':
#### 1.2. Overview
![](./fightingcv/img/repvgg.png)

#### 1.3. Code
#### 1.3. Usage Code
```python

from fightingcv.rep.repvgg import RepBlock
Expand Down Expand Up @@ -1161,7 +1161,7 @@ print(((out2-out)**2).sum())
#### 2.2. Overview
![](./fightingcv/img/acnet.png)

#### 2.3. Code
#### 2.3. Usage Code
```python
from fightingcv.rep.acnet import ACNet
import torch
Expand Down Expand Up @@ -1189,7 +1189,7 @@ print(((out2-out)**2).sum())
#### 2.2. Overview
![](./fightingcv/img/ddb.png)

#### 2.3. Code
#### 2.3. Usage Code
##### 2.3.1 Transform I
```python
from fightingcv.rep.ddb import transI_conv_bn
Expand Down Expand Up @@ -1342,7 +1342,7 @@ print("difference:",((out2-out1)**2).sum().item())
#### 1.2. Overview
![](./fightingcv/img/DepthwiseSeparableConv.png)

#### 1.3. Code
#### 1.3. Usage Code
```python
from fightingcv.conv.DepthwiseSeparableConvolution import DepthwiseSeparableConvolution
import torch
Expand All @@ -1365,7 +1365,7 @@ print(out.shape)
#### 2.2. Overview
![](./fightingcv/img/MBConv.jpg)

#### 2.3. Code
#### 2.3. Usage Code
```python
from fightingcv.conv.MBConv import MBConvBlock
import torch
Expand All @@ -1390,7 +1390,7 @@ print(out.shape)
#### 3.2. Overview
![](./fightingcv/img/Involution.png)

#### 3.3. Code
#### 3.3. Usage Code
```python
from fightingcv.conv.Involution import Involution
import torch
Expand Down

0 comments on commit 059edb9

Please sign in to comment.