add model maxvit and coatnet#3428
Open
learncat163 wants to merge 5 commits into
Open
Conversation
Resolve conflict in ppcls/arch/backbone/__init__.py by keeping both HEAD's maxxvit imports and develop's efficientvit/fastvit/edgenext/ swiftformer imports.
Author
loss测试
MaxViT_tiny_tf_224Epoch 1
Epoch 2
Epoch 3
Epoch 4
Epoch 5
每 Epoch 平均 Loss
CoAtNet_nano_rw_224Epoch 1
Epoch 2
Epoch 3
Epoch 4
Epoch 5
每 Epoch 平均 Loss
|
|
Thanks for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
因为 CoAtNet 和maxvit使用的是同一组基础代码,所以这里把相关的权重和介绍说明都放在一起, 把2个模型放在一个PR中提交了。
CoAtNet 模型权重
模型描述
CoAtNet (Coupling Convolution and Attention) 是一种将卷积与 Transformer 注意力相结合的视觉骨干网络。其核心思想是:浅层使用 MBConv 卷积块(利用卷积的平移不变性和局部特征提取能力),深层使用 Transformer 自注意力块(利用其全局建模能力)。CoAtNet 通过这种"卷积先行、注意力殿后"的混合架构,在 ImageNet 分类上取得了优异的性能,同时保持了良好的泛化能力。
模型变体
预训练权重
权重来源
所有权重均从 timm (HuggingFace) 的 safetensors 格式转换为 PaddlePaddle pdparams 格式。
coatnet_0_rw_224.sw_in1k.pdparamscoatnet_1_rw_224.sw_in1k.pdparamscoatnet_bn_0_rw_224.sw_in1k.pdparamscoatnet_nano_rw_224.sw_in1k.pdparamscoatnet_rmlp_1_rw_224.sw_in1k.pdparamscoatnet_rmlp_2_rw_224.sw_in1k.pdparamscoatnet_rmlp_nano_rw_224.sw_in1k.pdparams使用方式
PaddleClas 中使用
精度对齐
1. 前向推理精度对齐:timm vs Paddle(GPU)
2. ImageNet 验证集精度验证
使用5W张 ImageNet进行测试
MaxViT 模型权重
模型描述
MaxViT (Multi-Axis Vision Transformer) 是一种结合卷积与注意力的混合视觉骨干网络。其核心创新是 Multi-Axis Self-Attention (MXSA),将注意力分解为局部的窗口注意力和全局的网格注意力,使模型能够在单层内同时捕获局部和全局信息。MaxViT 在图像分类、目标检测、语义分割等任务上均取得了优异的性能。
模型变体
预训练权重
权重来源
所有权重均从 timm (HuggingFace) 的 safetensors 格式转换为 PaddlePaddle pdparams 格式。
maxvit_tiny_tf_224.in1k.pdparamsmaxvit_tiny_tf_384.in1k.pdparamsmaxvit_tiny_tf_512.in1k.pdparamsmaxvit_small_tf_224.in1k.pdparamsmaxvit_small_tf_384.in1k.pdparamsmaxvit_small_tf_512.in1k.pdparamsmaxvit_base_tf_224.in1k.pdparamsmaxvit_base_tf_384.in1k.pdparamsmaxvit_base_tf_512.in1k.pdparamsmaxvit_large_tf_224.in1k.pdparamsmaxvit_large_tf_384.in1k.pdparamsmaxvit_large_tf_512.in1k.pdparams使用方式
PaddleClas 中使用
精度对齐
1. 前向推理精度对齐:timm vs Paddle
2. ImageNet 验证集精度验证