Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge current dev to main #154

Merged
merged 414 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
414 commits
Select commit Hold shift + click to select a range
c2ba4bd
Update README.md
cjh3020889729 Oct 21, 2021
2e9bb41
Update README.md
cjh3020889729 Oct 21, 2021
e9aa985
update focal transformer code
cjh3020889729 Oct 21, 2021
a028b1e
Merge branch 'focal_transformer' of https://github.com/cjh3020889729/…
cjh3020889729 Oct 21, 2021
047a7de
Update focal_transformer.py
cjh3020889729 Oct 21, 2021
4a2124d
Update focal_transformer.py
cjh3020889729 Oct 21, 2021
1caba1f
Update multi_scale_samper.py
Oct 21, 2021
378a542
Merge pull request #38 from cjh3020889729/focal_transformer
xperzy Oct 21, 2021
3295fdb
Update focal_transformer.py
cjh3020889729 Oct 21, 2021
9679f89
fix readme
lmk123568 Oct 22, 2021
8c33ca3
add focal transformer res, add CLA badge
xperzy Oct 22, 2021
490443b
fix bug for mobilevit and data processing
xperzy Oct 22, 2021
5bd3276
Repair Pad bug
cjh3020889729 Oct 24, 2021
49cf4c1
Update focal_transformer.py
cjh3020889729 Oct 25, 2021
15989bc
fix readme
lmk123568 Oct 26, 2021
3d9a217
fix training bugs
xperzy Oct 28, 2021
01de6ea
rm ema name from config
xperzy Oct 28, 2021
466923a
Update focal_transformer.py
cjh3020889729 Oct 28, 2021
1818e5f
Update README.md
xperzy Oct 28, 2021
3a6813d
update ViT readme
xperzy Oct 29, 2021
1e33d5b
add mobilevit res and update readmes
xperzy Oct 29, 2021
3515ddc
fix readme
lmk123568 Nov 1, 2021
e3be1fb
upload mobilevit wrights
xperzy Nov 2, 2021
4979741
Merge pull request #41 from BR-IDL/vip
xperzy Nov 3, 2021
2b418c5
update vip
xperzy Nov 3, 2021
a9ca17e
update readmes
xperzy Nov 3, 2021
9f19585
update cls readme
xperzy Nov 3, 2021
87211e8
correct vip results in readme
xperzy Nov 4, 2021
5345d9f
update convmixer
xperzy Nov 4, 2021
d56b651
fix coding style
xperzy Nov 4, 2021
658532d
Merge pull request #44 from BR-IDL/convmixer
xperzy Nov 4, 2021
fd02cba
update readmes
xperzy Nov 4, 2021
7d18397
update convmlp
xperzy Nov 5, 2021
06f8cca
update code style
xperzy Nov 5, 2021
a6b6213
update code style for convmlp
xperzy Nov 5, 2021
b605992
Merge pull request #46 from BR-IDL/convmlp
xperzy Nov 5, 2021
0de0220
update convmlp results in readmes
xperzy Nov 5, 2021
5d7634e
1. add one cycle learning rate scheduler to convmixer
skpig Nov 6, 2021
e4cc613
1. add one cycle learning rate scheduler to convmixer
skpig Nov 6, 2021
e079718
update mobilevit s results
xperzy Nov 7, 2021
8550b84
fix code style
skpig Nov 7, 2021
e4e73fc
add xcit
lmk123568 Nov 7, 2021
7e06bfb
Merge pull request #49 from lmk123568/xcit
lmk123568 Nov 7, 2021
c3ac8cd
Update README.md
lmk123568 Nov 7, 2021
12fc016
add xcit arch in readme
lmk123568 Nov 8, 2021
e877d15
Update README.md
lmk123568 Nov 8, 2021
ac86349
Add files via upload
lmk123568 Nov 9, 2021
fb5227f
Update README.md
lmk123568 Nov 9, 2021
03a5bfb
fix import line
skpig Nov 10, 2021
a68e860
Merge pull request #47 from skpig/onecyclelr_in_convmixer
xperzy Nov 10, 2021
e8dcc35
bug fix for cswin in seg
xperzy Nov 12, 2021
ff89493
add pit
lmk123568 Nov 13, 2021
5092dbe
Merge pull request #53 from lmk123568/pit
lmk123568 Nov 13, 2021
adc9c96
update vip in readme
lmk123568 Nov 18, 2021
8fe0574
fix vip in readme
lmk123568 Nov 18, 2021
770080c
fix t2t annotation about einsum
lmk123568 Nov 18, 2021
9877f36
Update transformer.py
cjh3020889729 Nov 18, 2021
1021ede
Add README_cn
jarygrace Nov 21, 2021
837a573
rename stat.py and add some annotations in swintransformer,py
jarygrace Nov 21, 2021
208798b
Merge pull request #61 from jarygrace/develop
xperzy Nov 21, 2021
f13bf75
adjust README and README_cn
jarygrace Nov 22, 2021
80eca0a
Merge pull request #63 from jarygrace/develop
xperzy Nov 22, 2021
7abef3d
Fix loading pretrained weight in ViT. (Issue 66)
skpig Nov 23, 2021
c4461dd
Fix loading pretrained weight in ViT. (Issue 66)
skpig Nov 23, 2021
b9d758e
Passing num_classes parameters to the mixup, fixed #64
cjh3020889729 Nov 25, 2021
c90a6c8
fix PVTv2 main_single_gpu.py error, fixed #68
cjh3020889729 Nov 25, 2021
21530f5
upload the code of mobileformer
cjh3020889729 Nov 26, 2021
43f0755
Update mobileformer.py
cjh3020889729 Nov 26, 2021
6d8b1da
Modify comments in swin_transformer.py
jarygrace Nov 27, 2021
11c3f52
Merge branch 'BR-IDL:develop' into develop
jarygrace Nov 27, 2021
744a757
Merge pull request #71 from jarygrace/develop
jarygrace Nov 27, 2021
154bcd2
Add MAE folder(based on ViT)
skpig Nov 27, 2021
128a495
Merge remote-tracking branch 'origin/develop' into mae
skpig Nov 27, 2021
03e9a74
complete pretraining model cls
skpig Nov 28, 2021
eab3f49
bug fix for mobileformer
xperzy Nov 28, 2021
a20f3b7
Merge pull request #69 from BR-IDL/mobileformer
xperzy Nov 28, 2021
524901d
modify config
skpig Nov 28, 2021
e7df4d0
finish single pretrain & multi pretrain
skpig Nov 28, 2021
370327b
remove droppath & gradient clip
skpig Nov 28, 2021
91d3ca9
add test
skpig Nov 28, 2021
c6bb6a2
Fix config bug
skpig Nov 29, 2021
deccdad
Fix grad_clip bug
skpig Nov 29, 2021
42360a6
fix bug in issue76
xperzy Nov 29, 2021
50226a3
update readme install guide
xperzy Nov 29, 2021
0455755
Update transformer.py
libertatis Nov 30, 2021
dbe065d
alter path
wutianyiRosun Dec 1, 2021
7dccde8
fix bug
ToscanaGoGithub Dec 1, 2021
84a8d3a
Update README.md
libertatis Dec 1, 2021
cc4c988
Update README.md
libertatis Dec 1, 2021
ea1406c
Update README.md
libertatis Dec 1, 2021
eecfafe
update transformer.py
libertatis Dec 1, 2021
8ff663d
delete logs
libertatis Dec 1, 2021
9e27838
Merge pull request #80 from libertatis/develop
xperzy Dec 2, 2021
f9d4bc1
Update losses.py
RangeKing Dec 2, 2021
6796bb1
Update losses.py
RangeKing Dec 2, 2021
073ffa8
fix bug in all readme.md
libertatis Dec 2, 2021
5204438
Update losses.py
RangeKing Dec 3, 2021
0573849
fix doc bugs, add edu code
xperzy Dec 3, 2021
122601a
trans2seg and focal (#88)
GuoQuanhao Dec 3, 2021
401de2a
add lic (#95)
wutianyiRosun Dec 3, 2021
36258a8
Fix bug detail (#96)
wutianyiRosun Dec 3, 2021
21826cf
Fix bug cv2 (#97)
wutianyiRosun Dec 3, 2021
1d58c50
merge develop
skpig Dec 3, 2021
e4f40d6
modify masklayer to several functions
skpig Dec 3, 2021
5cde5eb
change some variables' name
skpig Dec 3, 2021
bc9ad08
change model initialization to Deit style
skpig Dec 3, 2021
1cacf79
change main.py according to Swintransformer
skpig Dec 3, 2021
399f779
Merge pull request #91 from RangeKing/feature
cjh3020889729 Dec 3, 2021
7960435
del redundancy
lmk123568 Dec 3, 2021
f35d837
finish MAE finetune model and single_gpu_finetune code
skpig Dec 3, 2021
56d470e
fix bug in datasets:
178vit Dec 3, 2021
24ef819
fix doc
178vit Dec 3, 2021
a1b9bfd
fix doc
178vit Dec 3, 2021
a77f86b
Delete .idea directory
libertatis Dec 3, 2021
42e0838
some model can not enable amp mode
SigureMo Dec 3, 2021
ffda10b
1. finish MAE multi_gpu_finetune code
skpig Dec 4, 2021
f72f503
remove .idea
skpig Dec 6, 2021
23221b3
Merge pull request #101 from cattidea/fix-amp
xperzy Dec 7, 2021
87fbdb6
add edu class10 code
xperzy Dec 7, 2021
39dbd68
update xcit
xperzy Dec 8, 2021
5c9b54c
update coding style
xperzy Dec 8, 2021
2d4cbbf
update coding style
xperzy Dec 8, 2021
ac72060
Merge pull request #109 from BR-IDL/xcit
xperzy Dec 8, 2021
cdefc58
update XCiT main_single_gpu.py
xperzy Dec 8, 2021
eb578f5
update PiT
xperzy Dec 8, 2021
2f12a61
update coding style
xperzy Dec 8, 2021
c61b787
update coding style
xperzy Dec 8, 2021
7bb4b92
Merge pull request #110 from BR-IDL/pit
xperzy Dec 8, 2021
5761a61
update readmes
xperzy Dec 8, 2021
caa8cc8
fix mae bugs
xperzy Dec 8, 2021
dbb60eb
refactor main and run script
xperzy Dec 8, 2021
70e3f3a
fix main finetune import bug
xperzy Dec 9, 2021
eef4144
add halonet
jarygrace Dec 9, 2021
9bdbf54
update halo
xperzy Dec 9, 2021
0cbf366
update coding style for halonet
xperzy Dec 9, 2021
9a8ec2d
Merge pull request #112 from BR-IDL/halo
xperzy Dec 9, 2021
a7edbc0
update readmes
xperzy Dec 9, 2021
e23569e
refactor vit model
xperzy Dec 10, 2021
9a7c105
fix vit, now allow val without training set
xperzy Dec 10, 2021
5e12bd2
add poolformer
lmk123568 Dec 10, 2021
a18fc01
Merge pull request #117 from lmk123568/poolformer
lmk123568 Dec 10, 2021
50eec3b
add botnet
liuhui0401 Dec 11, 2021
7d0ceb9
Merge branch 'develop' into botnet
liuhui0401 Dec 11, 2021
dcb1fb8
delete output
liuhui0401 Dec 11, 2021
03aa876
update MAE, move mask to dataloading, change shuffle scheme
xperzy Dec 13, 2021
c313823
Fix some problems
skpig Dec 13, 2021
992ff9e
add(cvt): impl cvt for paddle
defensetongxue Dec 14, 2021
e67226f
Update README.md
xperzy Dec 14, 2021
a2bfd3c
update edu folder
xperzy Dec 14, 2021
8d48d07
fix einsum
liuhui0401 Dec 14, 2021
7e53844
add botnet50.yaml
liuhui0401 Dec 14, 2021
163fb5b
add botnet50_224.yaml
liuhui0401 Dec 14, 2021
7912401
update poolformer
xperzy Dec 15, 2021
d469a17
fix coding style
xperzy Dec 15, 2021
e7a8d60
Merge pull request #124 from BR-IDL/poolformer
xperzy Dec 15, 2021
b532247
update readme for poolformer
xperzy Dec 15, 2021
34b50a6
delete einops
liuhui0401 Dec 16, 2021
dc98bcd
Merge branch 'poolformer' into develop
xperzy Dec 16, 2021
68f6548
fix opt loading bug
xperzy Dec 16, 2021
6f150b8
fix random erasing if else bug
xperzy Dec 16, 2021
04a6a2e
delete einops
liuhui0401 Dec 16, 2021
80fe177
delete einops
liuhui0401 Dec 16, 2021
5dae73a
fix bugs and now ported weight is correct
xperzy Dec 16, 2021
3afb9d3
style(CvT): simplify CvT model's kawargs
defensetongxue Dec 16, 2021
725c913
fix(Cvt): change import filename
defensetongxue Dec 16, 2021
cc36690
fix(CvT): fix unknown bug
defensetongxue Dec 16, 2021
25138ef
improve code style
liuhui0401 Dec 16, 2021
63569e4
improve code style
liuhui0401 Dec 16, 2021
f4ba710
improve code style
liuhui0401 Dec 16, 2021
ba31e70
fix(CvT): simplify style in cvt.py
defensetongxue Dec 17, 2021
dfbb5b6
fix(CvT): delete debug notes for style
defensetongxue Dec 17, 2021
eb7a3d7
Combine Rand Augmentation and Auto Augmentation in augment.py
skpig Dec 17, 2021
a4a8eea
fix #129
defensetongxue Dec 19, 2021
20bbaf3
fix #55
DDXDaniel Dec 20, 2021
b44d91a
fix #115
DDXDaniel Dec 20, 2021
d5c057a
fix hyperparams
xperzy Dec 22, 2021
769b998
fix coding styles
xperzy Dec 22, 2021
4d4693f
Merge pull request #73 from BR-IDL/mae
xperzy Dec 22, 2021
41c4050
add files in botnet
xperzy Dec 22, 2021
936c59f
Merge pull request #118 from liuhui0401/botnet
xperzy Dec 22, 2021
eea1eb6
update readmes for botnet
xperzy Dec 22, 2021
d48cd10
Merge pull request #128 from BR-IDL/augment
xperzy Dec 22, 2021
d30c65a
Merge pull request #85 from BR-IDL/transgan_opt
xperzy Dec 22, 2021
ef19002
Merge pull request #131 from defensetongxue/fix-comment-typo
xperzy Dec 22, 2021
7b2f849
rm useless file, add comments in __init__
xperzy Dec 22, 2021
addb60b
Merge pull request #133 from Thecats-Jfm/issue_115
xperzy Dec 22, 2021
a6964ec
remove useless files
xperzy Dec 22, 2021
ac2bc02
Merge branch 'develop' into fix_transGAN_bug
xperzy Dec 22, 2021
de173d6
Merge pull request #132 from DDXDaniel/fix_transGAN_bug
xperzy Dec 22, 2021
78594f9
Modify all folders
skpig Dec 23, 2021
7081553
modify .gitignore
skpig Dec 23, 2021
9b4631b
remove DS_Store files, update .gitignore
xperzy Dec 23, 2021
9b78cd3
Merge pull request #137 from BR-IDL/ds_store_fix
skpig Dec 23, 2021
391b7c2
rm .DS_store files
DDXDaniel Dec 23, 2021
bad16ed
merge origin/develop
skpig Dec 23, 2021
12772e1
rm useless files
DDXDaniel Dec 23, 2021
018eae1
modify augment.py in MAE & Botnet
skpig Dec 23, 2021
642c7c6
Merge pull request #136 from BR-IDL/augment
xperzy Dec 23, 2021
7f35498
Merge pull request #138 from DDXDaniel/rm_DS_store
xperzy Dec 23, 2021
3b0eb46
support imagenet mean and std in config
xperzy Dec 23, 2021
df0aac6
fix(CvT): fix the style of get/setattr
defensetongxue Dec 23, 2021
89f1078
fix(CvT): remove intermediate files
defensetongxue Dec 23, 2021
97d26d1
add(CvT): add config file for cvt
defensetongxue Dec 23, 2021
810468c
Merge pull request #140 from BR-IDL/mean_std_fix
FL77N Dec 23, 2021
0719bfa
fix val bugs and now results are correct
xperzy Dec 24, 2021
78545ac
Merge pull request #121 from defensetongxue/cvt
xperzy Dec 24, 2021
9420a5f
Update README.md
xperzy Dec 24, 2021
d211450
update readme for CvT
xperzy Dec 24, 2021
d7cc943
add argument -output for image_classification
SigureMo Dec 24, 2021
3edc9c2
add missing world size for lr linear scale in main_multi_gpu
SigureMo Dec 24, 2021
76b0e3a
Code of HVT is released
jarygrace Dec 27, 2021
d08e5b7
Code of HVT is released
jarygrace Dec 27, 2021
893b69d
correct README
jarygrace Dec 27, 2021
03ae100
Merge pull request #143 from cattidea/add-arg-output
xperzy Dec 27, 2021
acf73ab
Merge pull request #144 from cattidea/add-missing-world-size
xperzy Dec 27, 2021
7d13a2c
add missing import and fix #115 in cvt
SigureMo Dec 24, 2021
05713ee
Cvt -> CvT
SigureMo Dec 24, 2021
5cbaaf3
fix droppath error on training
SigureMo Dec 25, 2021
0ff706d
set CROP_PCT to 0.875 in CvT-224 models
SigureMo Dec 26, 2021
586a8e6
fix home links
SigureMo Dec 26, 2021
ddd4c7c
update acc for cvt-224 models
SigureMo Dec 26, 2021
fb1e07f
update acc in cvt README
SigureMo Dec 26, 2021
b2da7a6
add model TYPE and update model NAME
SigureMo Dec 26, 2021
2fabdcb
correct code of HVT
jarygrace Dec 27, 2021
7bdb024
Modified code of HVT
jarygrace Dec 27, 2021
230709c
update .gitignore
SigureMo Dec 27, 2021
57b3466
Modified code of HVT
jarygrace Dec 27, 2021
f4c5a7b
Modified code of HVT
jarygrace Dec 27, 2021
adaeabd
Modified ReadME and some details of HVT
jarygrace Dec 27, 2021
d8bcc94
align hyperparams to official repo
SigureMo Dec 27, 2021
b5f115a
Merge branch 'hvt' of github.com:BR-IDL/PaddleViT into hvt
jarygrace Dec 28, 2021
036c36b
Merge pull request #146 from BR-IDL/hvt
xperzy Dec 28, 2021
4440d6f
fix hvt
xperzy Dec 28, 2021
265f2da
update readme for HVT
xperzy Dec 28, 2021
8443445
update readme
xperzy Dec 28, 2021
8f13446
Merge branch 'cattidea-fix-cvt' into develop
xperzy Dec 28, 2021
386a30a
Merge pull request #98 from 178vit/fix-bug-datasets
xperzy Dec 29, 2021
b32948e
Merge pull request #99 from 178vit/fix-doc
xperzy Dec 29, 2021
422b7fa
Merge branch 'develop' into develop
xperzy Dec 29, 2021
de1ad11
Merge pull request #93 from libertatis/develop
xperzy Dec 29, 2021
5bbf389
Add hvt_s1_patch16_224 config file and modify config detail for other…
jarygrace Dec 30, 2021
401a781
Merge pull request #149 from BR-IDL/hvt
xperzy Dec 30, 2021
14fb7c6
update hvt s1 result in readmes
xperzy Dec 30, 2021
3b30e83
add multi scale sampler, update model and result
xperzy Dec 31, 2021
c63c6f4
fix coding style
xperzy Dec 31, 2021
923eca0
Merge pull request #150 from BR-IDL/mobilenet_sampler
xperzy Dec 31, 2021
f8b4da0
update image classification readme
xperzy Jan 6, 2022
4edd947
add training for classification models
xperzy Jan 10, 2022
cc0b342
add num_classes in args
xperzy Jan 11, 2022
6a2c063
Merge pull request #153 from BR-IDL/add_training
xperzy Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe your feature request**

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Describe the reference code or paper**


**Describe the possible solution**


**Additional context**
Add any other context or screenshots about the feature request here.
28 changes: 21 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,27 @@ dmypy.json
# Pyre type checker
.pyre/

# segmentation
./segmentation/output
./segmentation/log
# Paddle checkpoints
*.pdparams
*.pdopt
./segmentation/pytorch_2_paddle.py
./segmentation/readme.txt
setr.py.bak


# Segmentation
/semantic_segmentation/output
/semantic_segmentation/log
/semantic_segmentation/data
/semantic_segmentation/tmp
/semantic_segmentation/pytorch_2_paddle.py
/semantic_segmentation/config.ini
/semantic_segmentation/job.sh
/semantic_segmentation/run.sh

# Image Classification
output/

# macOS
.DS_Store
*/.DS_Store

# Editor Config
.idea/
.vscode/
9 changes: 6 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
English | [简体中文](./CONTRIBUTING_cn.md)

# Contribute Code

You encourage and appreciate researchers and developers to contribute to project **PPViT**.
You encourage and appreciate researchers and developers to contribute to project **PaddleViT**.
To contribute to PaddlePaddle, you have to agree with the [PaddleViT Contributor License Agreement](https://cla-assistant.io/BR-IDL/PaddleViT).

This document explains our workflow and working style.

## Workflow

PPViT uses this [Git branching model](http://nvie.com/posts/a-successful-git-branching-model/). You can follow the listed steps for common contributions.
PaddleViT uses this [Git branching model](http://nvie.com/posts/a-successful-git-branching-model/). You can follow the listed steps for common contributions.

### 1. Fork the repo

Expand Down Expand Up @@ -52,7 +55,7 @@ PPViT uses this [Git branching model](http://nvie.com/posts/a-successful-git-bra
An experienced Git user pulls from the official repo often -- daily or even hourly, so they notice conflicts with others work early, and it's easier to resolve smaller conflicts.

```bash
$ git remote add upstream https://github.com/xperzy/PPViT
$ git remote add upstream https://github.com/BR-IDL/PaddleViT
$ git pull upstream develop
```

Expand Down
124 changes: 124 additions & 0 deletions CONTRIBUTING_cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
简体中文 | [English](./CONTRIBUTING.md)

## 贡献代码

鼓励并感谢为**PaddleViT**项目提供贡献的研究人员和开发人员。

您需要同意[PaddleViT 参与者许可协议](https://cla-assistant.io/BR-IDL/PaddleViT),方可以参与PaddlePaddle贡献。

本文档描述了我们的工作流程和代码风格。

## 工作流程

PaddleViT 使用这个[Git 分支模型](http://nvie.com/posts/a-successful-git-branching-model/). 您可以按照以下步骤提交代码并参与贡献.

### 1. Fork

请从您的fork中提交 `Pull Requests` .

只需要前往我们的 GitHub repo 页面并点击 ["Fork"](https://help.github.com/articles/fork-a-repo/) 按钮.

### 2. 克隆 (Clone)

将您的fork复制到本地:

```bash
$ git clone https://github.com/your-github-account/PPViT
$ cd PPViT
```

### 3. 创建本地 `feature` 分支

对于日常工作例如添加新功能或修复错误,请在编码之前基于`develop`分支创建一个 `feature` 分支:

```bash
$ git checkout develop
$ git checkout -b feature
```
其中`feature` 可以替换为你正在处理的功能的名称.

### 4. 提交 (Commit)

`during and after` 您的更改,将代码提交到本地存储库.

```shell
$ git add -A
$ git commit -m “message”
```

### 5. 测试

- 我们鼓励编写`unittest` 来测试你编写的类与方法的实现.
- 在开始合并之前,请在相关数据集上测试模型的性能。

### 6. 保持本地仓库最新 (Keep Pulling)
在准备发起Pull Request之前,需要同步原仓库中最新的代码。

有经验的Git用户会经常从官方存储库中pull数据--每天甚至每小时,因此他们会尽早注意到与其他人的工作冲突,并且更容易解决较小的冲突。

```bash
$ git remote add upstream https://github.com/BR-IDL/PaddleViT
$ git pull upstream develop
```

### 7. Push 以及 file a `Pull Request`

1. **Push** 您的本地工作到您的fork仓库中:

```bash
$ git push origin my-cool-stuff
```
> 其中,`my-cool-stuff`是您的分支名称

push操作允许您创建一个pull request,请求此 [official repo](https://github.com/BR-IDL/PaddleViT) 将您的更改拉入到官方库中.

2. 想要创建一个`Pull Request`, 请按照 [这些步骤](https://help.github.com/articles/creating-a-pull-request/).

如果您的更改是`fixing an issue`, 请在pull request的描述部分写下["Fixes <issue-URL>"](https://help.github.com/articles/closing-issues-using-keywords/). 当合并您的 pull request时,Github将关闭该问题.

请记住为您的pull request指定审阅者. 如果您不知道正确的选择,请遵循Github的推荐.

### 8. 删除本地和远程 `feature` 分支

成功合并到`develop`分支后,删除您的`feature` 分支。
为了保持您的本地工作区和fork简洁,您可能想要删除合并的分支:

```bash
$ git push origin :my-cool-stuff
$ git checkout develop
$ git pull upstream develop
$ git branch -d my-cool-stuff
```

## 代码审查

- 请随时通过 IM 或电子邮件来 ping 您的审阅者以发送您的pull request.

- 请回答审阅者的每一条评论. 如果您要关注评论,请写“完成”;否则请给出理由。

- 如果您不希望您的审阅者被电子邮件通知淹没,可以通过 [批量](https://help.github.com/articles/reviewing-proposed-changes-in-a-pull-request/) 回复评论.

- 减少非必要的提交. 存在一些开发人员经常提交,建议通过运行 `git commit --amend` 代替 `git commit`,将一系列小的变动附加到一个提交中.

## Coding Standard

### Code Style

我们的Python代码遵循 [PEP8 language guide](https://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_language_rules/) 以及 [PEP8 style guide](https://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_style_rules/).

### Use Pylint

[Pylint](http://pylint.pycqa.org/en/latest/) 是一款 Python代码分析工具,可以分析Python代码中的错误,发现不符合编程标准或存在潜在问题的代码。

### Comments and Annotations

为了让其他人更容易使用并生成在线文件,请在每个类方法的每个函数中包含文档的描述字符串。

### 单元测试

请记得添加相关的单元测试

- 对于 Python 代码, 请使用 [Python's standard `unittest` package](http://pythontesting.net/framework/unittest/unittest-introduction/).

尝试对每个类方法的每个函数都进行单元测试。

Binary file modified PaddleViT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading