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

[Pass] Support density_prior_box in SSDBoxesCalcOfflinePass #6868

Merged
merged 5 commits into from
Sep 8, 2021

Conversation

zhaoyang-star
Copy link
Collaborator

@zhaoyang-star zhaoyang-star commented Sep 6, 2021

  • SSDBoxesCalcOfflinePass中支持density_prior_box:之前该 pass 只支持prior_box;使用 facebox 模型验证的效果如下;使用固化尺寸模型后,在麒麟970手机上,opencl fp16 tune off 速度150ms;加入pass优化后速度119ms
    image

image

  • SSDBoxesCalcOfflinePass中增加约束:当 img shape 或 input shape 在 opt 阶段无法读到时,跳过本 pass;如果不跳过 pass,则因读到的 img shape 或 input shape 的 HW 维度是-1导致在计算 prior_box 时出现段错误
  • 删除将PriorBox和PriorBoxVar注册为 Host 上的 kernel

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 6, 2021

Thanks for your contribution!

@zhaoyang-star zhaoyang-star changed the title [Pass] support density_priro_box in SSDBoxesCalcOfflinePass [Pass] support density_prior_box in SSDBoxesCalcOfflinePass Sep 6, 2021
@zhaoyang-star zhaoyang-star changed the title [Pass] support density_prior_box in SSDBoxesCalcOfflinePass [Pass] Support density_prior_box in SSDBoxesCalcOfflinePass Sep 7, 2021
@yingshengBD
Copy link
Collaborator

LGTM

1 similar comment
@yingshengBD
Copy link
Collaborator

LGTM

Copy link
Collaborator

@zhenlin-work zhenlin-work left a comment

Choose a reason for hiding this comment

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

done

@zhaoyang-star zhaoyang-star merged commit 1f9c398 into PaddlePaddle:develop Sep 8, 2021
@zhaoyang-star zhaoyang-star deleted the fix_boxcoder branch September 8, 2021 02:26
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.

3 participants