[Feature] Add pvt and pvtv2 (#5780)
* add pvt
* add pvtv2
* Remove redundant codes & use init_cfg
* Rename FFN to ConvFFN
* rename
* move to transformer.py
* remove rebundant codes
* add PatchEmbed
* remove patch size
* add doc
* add tests
* resolve comments
* add pad_to_stride
* resolve comments
* fix bugs
* add adap pooling
* use adap pooling
* fix docstr
* add uni test
* add more doc
* add example
* remove patch_to_stride
* rename poo
* resolve comments
* fix doc
* refactor patch embed and patch merge and fix pretrain
* move padding calculation to a function
* change the default value of bias in patchembed
* fix some bugs
* rename encoder layer
* add unittest
* fix lint
* update pvt-l config
* update pvt-l config
* add pvt metafile
* update pvt metafile
* update pvt readme doc
* resolve comments
Co-authored-by: whai362 <wangwenhai362@163.com>
Co-authored-by: zhangshilong <2392587229zsl@gmail.com>
Co-authored-by: BIGWangYuDong <yudongwang@tju.edu.cn>
|