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

[OpenCL] enhance ssd_boxes_calc_offline_pass #5965

Conversation

zhaoyang-star
Copy link
Collaborator

cherry-pick #5964

【本PR内容】

  1. 由于reshapereshape2, flattenflatten2 是一样的,因此在 ssd_boxes_calc_offline_pass 中加入对 reshapeflatten的支持,这样就可以处理 ssd_mobilenetv1 模型了;
  2. 之前版本的prior_box 参数属性没有与 paddle 1.8/2.0 严格对齐,主要是部分参数不是必须项,且没有设置默认值,这会在 opt 时引起找不到一些参数,如:
Loading topology data from /island/original_models.backup/ssd_mobilenet_v1/__model__
Loading non-combined params data from /island/original_models.backup/ssd_mobilenet_v1
1. Model is successfully loaded!
[F  4/23  9:20: 9.820 ...Lite/lite/model_parser/general/op_desc.h:118 GetAttr] Check failed: it != attrs().end(): No attributes called min_max_aspect_ratios_order found for prior_box
  1. 去掉编译警告

* set several params as default in prior_box
* add reshape2 & flatten2 in ssd_boxes_calc_offline_pass
test=develop
@paddle-bot-old
Copy link

Thanks for your contribution!

@zhaoyang-star zhaoyang-star changed the title [OpenCL] enhance ssd_boxes_calc_offline_pass. test=develop [OpenCL] enhance ssd_boxes_calc_offline_pass Apr 24, 2021
Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhaoyang-star zhaoyang-star merged commit cd342d8 into PaddlePaddle:release/v2.9 Apr 25, 2021
@zhaoyang-star zhaoyang-star deleted the cherry_fix_prior_box_params branch April 25, 2021 06:42
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