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

[Bug]部署模型文件缺少model.pdiparams #207

Closed
1528242627 opened this issue Jul 19, 2024 · 3 comments
Closed

[Bug]部署模型文件缺少model.pdiparams #207

1528242627 opened this issue Jul 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@1528242627
Copy link

欢迎您反馈PaddleRS使用问题。辛苦您提供以下信息,以方便我们快速定位和解决问题:

  1. PaddleRS版本:develop
  2. PaddlePaddle版本:PaddlePaddle 2.6.1
  3. 操作系统信息:Windows
  4. Python版本号:Python3.8
  5. CUDA/cuDNN版本:CUDA11.2/cuDNN 8.x
  6. 完整的代码:
    import subprocess

设置要运行的命令

command = [
'python', 'C:/Users/KKR/Desktop/PaddleRS-develop/deploy/export/export_model.py',
'--model_dir=./output/fast_scnn/best_model/',
'--save_dir=./inference_model/',
'--fixed_input_shape=[-1,10,224,224]'
]

运行命令

subprocess.run(command)

  1. 详细的错误信息与相关log:(若使用多卡,log默认保存在log/worklog.0

  2. 问题复现步骤:使用测试demo里的Fast-SCNN模型部署时,deploy/export/README.md中提供的部署模型导出命令,生成的模型文件只有.success,model.pdiparams.info,model.pdmodel,model.yml,pipeline.yml五个文件,缺少model.pdiparams文件

  3. 其他内容:

@1528242627 1528242627 added the bug Something isn't working label Jul 19, 2024
@github-actions github-actions bot added triage new issue/PR waiting to be dealed and removed triage new issue/PR waiting to be dealed labels Jul 19, 2024
@1528242627 1528242627 changed the title [Bug] [Bug]部署模型文件缺少model.pdiparams Jul 20, 2024
@1528242627
Copy link
Author

目前排查的问题原因可能是模型参数没有正确加载,load_model函数只给了warning。。2024-07-22 15:36:06 [WARNING] Cannot find raw_params. Default arguments will be used to construct the model.

@1528242627
Copy link
Author

已解决,原因是相对路径中含有中文

@Bobholamovic
Copy link
Member

考虑到问题已经解决,我将关闭这个issue。有其他问题欢迎重启这个issue或者发起新的issue~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants