-
Notifications
You must be signed in to change notification settings - Fork 693
[RKNPU2]support rknpu2 ClasModel #957 #964
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
Conversation
|
Hello,感谢您提交pr。方便提供下您的模型文件吗?我这边下载测试一下 |
|
可以参考picodet,新增屏蔽normalize和permute的操作。不要采用直接从yaml文件里删除permute的操作,这样可以让RKNN模型和其他backend的模型共用一个yaml文件。 |
|
关联issue:#957 |
|
另外,您的PR还缺少了如下部分:
|
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
按照要求修改一下哈
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
按照要求修改下
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您已提交的代码还存在如下问题,麻烦再修改下
| ./rknpu_test ./model ./images/ILSVRC2012_val_00000010.jpeg | ||
| ``` | ||
|
|
||
| ## 运行结果展示 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个运行结果是否正确和其他的模型对比过了吗?比如onnx模型
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对比了,推理的分类是一样的,置信度差0.1以内
|
目前还缺少的部分为:
|
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有个小细节麻烦你能修改下
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档还有点小问题,再修改下。然后请在docs/cn/faq/rknpu2/rknpu2.md更新一下模型的运行速度,onnx没有测试的话不需要填。参考一下其他模型
examples/vision/classification/paddleclas/rknpu2/python/README.md
Outdated
Show resolved
Hide resolved
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有一些小小小小的问题
Zheng-Bicheng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@jiangjiajun 贡献者完成了fp16的PPClas模型部署,但是还未完成全量化部署,这部分后面我来补充吧,可以先合入 。 |
jiangjiajun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有几个注释/文档上的修改建议,其它没问题。改完即可Approve合入
|
|
||
| bool WithGpu() { return use_cuda_; } | ||
|
|
||
| // This function will disable normalize in preprocessing step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释需符合Doxygen语法,不然会无法生成API文档, 这里应该改成
/// This function will disable normalize in preprocessing step.
下面一个函数同理
| @@ -0,0 +1,57 @@ | |||
| # PPClas 模型部署 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标题改为 "PaddleClas 模型RKNPU2部署"
| @@ -0,0 +1,35 @@ | |||
| # PPClas Python部署示例 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标题改为 "PaddleClas Python部署示例"
| @@ -0,0 +1,78 @@ | |||
| # PPClas C++部署示例 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标题改为 "PaddleClas C++部署示例“”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
Thanks for your contribution! |
PR types(PR类型)
Model
Description
support rknpu2 ClasModel infer