Toward Devkit Consistency#8360
Merged
jerrywgz merged 8 commits intoPaddlePaddle:developfrom Jun 25, 2023
Merged
Conversation
|
Thanks for your contribution! |
zhiboniu
approved these changes
Jun 25, 2023
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.
目标
修改代码以提升PaddleCV套件一致性,同时适配X项目。修改后,套件应满足如下一致性要求:
best_model子目录中,文件命名为model.pdparams。与之相配套的优化器参数(如果存储的话)文件命名为model.pdopt,也存储在该目录中。requirements.txt文件,指定使用套件基础功能需要的依赖。在套件根目录可通过pip install .或pip install -e .方式(至少其中一种)安装套件核心库。inference.pdiparams:保存权重参数。inference.pdiparams.info:保存与参数有关的额外信息。inference.pdmodel:保存模型结构描述信息。inference.yml:预处理配置文件。代码变动
tools/export_model.py支持--for_fd命令行选项,以控制是否将模型导出为FD格式。deploy/python/infer.py与deploy/python/keypoint_infer.py支持--use_fd_format命令行选项,能够接受并处理FD格式的导出模型。configs/slim/quant/mask_rcnn_r50_fpn_1x_qat.yml与configs/slim/quant/yolov3_darknet_qat.yml,以使这两个模型在量化训练时使用合适的batch size。遗留问题
best_model目录中尚未存储model.pdopt,尽管后者是可存储的。不过目前的实现也未违背一致性要求1。后续可考虑追加存储优化器参数。