PaddlePaddle / PaddlePaddle/PaddleX
paddleX示例项目模型训练时训练失败
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
问题类型:模型训练
问题描述
在paddleX客户端对示例项目进行模型训练时出错,
UnavailableError: Load operator fail to open file D:\车道线检测\pretrain\MobileNetV2_pretrained\conv1_1_weights, please check whether the model file is complete or damaged.
[Hint: Expected static_cast(fin) == true, but received static_cast(fin):0 != true:1.] at (D:\1.8.4\paddle\paddle/fluid/operators/load_op.h:41)
[operator < load > error]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "multiprocessing\process.py", line 297, in _bootstrap
File "multiprocessing\process.py", line 99, in run
File "paddlexui\pms\model_tasks\tasks.py", line 68, in _call_paddlex_train
File "paddlexui\pms\model_tasks\train\classification.py", line 134, in train
File "site-packages\paddlex\cv\models\classifier.py", line 195, in train
File "site-packages\paddlex\cv\models\base.py", line 262, in net_initialize
File "site-packages\paddlex\utils\utils.py", line 292, in load_pretrain_weights
File "site-packages\paddle\fluid\io.py", line 1894, in load_program_state
RuntimeError: Failed to load model file , please make sure model file is saved with the following APIs: save_params, save_persistables, save_vars

请问这个的错误是什么问题呢?
请在这里描述您在使用过程中的问题,如模型训练出错,建议贴上模型训练代码,以便开发人员分析,并快速响应
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the traceback entries in paddlexui/pms/model_tasks/train/classification.py and paddlex/cv/models/classifier.py, then inspect the pretraining load path reported in paddlex/utils/utils.py. Reproduce the example-project training failure in the PaddleX client and determine why the referenced MobileNetV2 weights cannot be loaded. Done means the cause is verified and the training workflow has a documented or tested resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100