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

[飞桨黑客松第四期] (129) TinyNet #2724

Merged
merged 2 commits into from
May 6, 2023

Conversation

flytocc
Copy link
Contributor

@flytocc flytocc commented Mar 24, 2023

修改内容

  1. [bugfix]DecodeImage使用pil backend时,image类型应转为RGB
  2. [bugfix]MixupOperatorCutmixOperatorFmixOperator中,索引打乱的方法存在一定缺陷,np.random.permutation可能造成部分索引在打乱前后顺序不变。改为逆序打乱索引。
  3. [bugfix] 当使用checkpoint恢复训练时,更新sampler中的epoch为当前的epoch
  4. [update]RandCropImage添加use_log_aspect的支持
  5. [add] 增加TinyNet算法,包括model、config、test_tipc

复现精度

测试

Models Top1 Top5 Reference
top1
Reference
top5
FLOPs
(G)
Params
(M)
TinyNet_A 0.7762 0.9354 0.777 0.935 0.339 6.24
TinyNet_A 0.768 0.933 0.339 6.24
TinyNet_B 0.7495 0.9217 0.750 0.922 0.202 3.76
TinyNet_C 0.7130 0.8970 0.712 0.897 0.100 2.48
TinyNet_D 0.6687 0.8706 0.670 0.871 0.052 2.36
TinyNet_E 0.5972 0.8184 0.599 0.818 0.024 2.06

训练

训练平台为AIStudio,PaddlePaddle2.4.0 with V100*4。训练命令可参考:

python -m paddle.distributed.launch --gpus=0,1,2,3 \
  tools/train.py \
    -c ppcls/configs/ImageNet/TinyNet/TinyNet_A.yaml
Models Top1 Top5 Reference
top1
Reference
top5
weight & log
TinyNet_A 0.767 0.932 0.768 0.933 best_model_ema.ema.params & train*.log

权重及训练日志下载地址:百度网盘

@paddle-bot
Copy link

paddle-bot bot commented Mar 24, 2023

Thanks for your contribution!

Copy link
Collaborator

@TingquanGao TingquanGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要本地rebase一下

ppcls/data/preprocess/batch_ops/batch_operators.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@TingquanGao TingquanGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

玉博训练精度验证通过。

@TingquanGao TingquanGao merged commit b66ee63 into PaddlePaddle:develop May 6, 2023
@flytocc flytocc deleted the TinyNet branch May 6, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants