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

[NEW Model] Add BIT DPT Model #4202

Merged
merged 7 commits into from
Dec 26, 2022
Merged

Conversation

JunnYu
Copy link
Member

@JunnYu JunnYu commented Dec 22, 2022

PR types

New features

PR changes

Models

Description

  • 新增BIT模型。 支持的权重,"google/bit-50"。
  • 新增DPT模型。支持的权重,"Intel/dpt-large", "Intel/dpt-hybrid-midas", "Intel/dpt-large-ade"。
  • 扩展CLIP模型,支持 CLIPTextModelWithProjection 和 CLIPVisionModelWithProjection。
  • 新增activations.py。 与HF所有激活函数一致。
  • 新增utils/initializer.py。未来初始化参数的时候可以使用这个文件。
  • 新增image_processing,未来将会废弃 feature_extraction。
  • 原有的单测不支持tuple元素比较,现在支持。

@JunnYu JunnYu requested a review from guoshengCS December 22, 2022 06:00
@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

Merging #4202 (c217445) into develop (3e56184) will increase coverage by 0.92%.
The diff coverage is 60.37%.

@@             Coverage Diff             @@
##           develop    #4202      +/-   ##
===========================================
+ Coverage    33.87%   34.79%   +0.92%     
===========================================
  Files          406      417      +11     
  Lines        56896    58911    +2015     
===========================================
+ Hits         19273    20501    +1228     
- Misses       37623    38410     +787     
Impacted Files Coverage Δ
paddlenlp/transformers/image_transforms.py 12.93% <12.93%> (ø)
paddlenlp/transformers/dpt/image_processing.py 20.00% <20.00%> (ø)
paddlenlp/transformers/bit/image_processing.py 20.48% <20.48%> (ø)
paddlenlp/transformers/clip/image_processing.py 20.48% <20.48%> (ø)
paddlenlp/transformers/image_utils.py 18.93% <25.47%> (+2.26%) ⬆️
paddlenlp/transformers/image_processing_utils.py 25.53% <25.53%> (ø)
paddlenlp/transformers/model_utils.py 72.78% <40.00%> (-0.34%) ⬇️
paddlenlp/utils/initializer.py 48.76% <48.76%> (ø)
paddlenlp/transformers/clip/modeling.py 22.64% <51.38%> (+3.19%) ⬆️
paddlenlp/transformers/feature_extraction_utils.py 27.02% <62.50%> (-0.19%) ⬇️
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JunnYu JunnYu merged commit ba0c3d1 into PaddlePaddle:develop Dec 26, 2022
@JunnYu JunnYu deleted the add_bit_dpt_model branch January 4, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants