Yixiao Fang
|
d80ec5a4b8
|
[Refactor] Refactor BEiT backbone and support v1/v2 inference. (#1144)
* refactor beit backbone
* use LinearClsHead
* fix mean and std value
* fix lint
* support inference if beit-v2
* update encoder layer and init
* update
* add ut
* add prepare_relative_position_bias_table function
* add cls_token
* fix lint
* add pos_embed check
* update metafile and readme
* update weights link
* update link of weights
* update metafile
* update
* update docstrings
* update according to review
* rename readme
* update docstring
* fix lint
|
2022-11-29 12:56:33 +08:00 |