Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| README.md | 4 years ago | |
| README_CN.md | 4 years ago | |
| fix_checkpoint_file.py | 4 years ago | |
Requirements
MindSpore>=1.2.0
User may need to change module name or variable name in order to improve the readability of converted MindSpore script. However, these changes will result in failing to load checkpoint because of unmatched weight name. The Fix CheckPoint file Tool is used to fix weight names in checkpoint file.
usage: fix_checkpoint_file.py [-h]
source_py_file fixed_py_file source_ckpt_file
fixed_ckpt_file
Fix weight name in CheckPoint file.
positional arguments:
source_py_file source model script file
fixed_py_file fixed model script file
source_ckpt_file source_checkpoint file
fixed_ckpt_file fixed_checkpoint file
optional arguments:
-h, --help show this hekp message and exit
Assuming that the source model script file is xxx/model.py, the fixed model script file is xxx/fixed_model.py, the source checkpoint file is xxx/model.ckpt and the new checkpoint file is xxx/fixed_model.ckpt.
The command is that:
python -m mindinsight.mindconverter.tools.fix_checkpoit_file xxx/model.py xxx/fixed_model.py xxx/model.ckpt xxx/fixed_model.ckpt
If generation is successful, the result below would be shown:
Saved new checkpoint file to xxx/fixed_model.ckpt.
--model_file) are supported in the tool.MindInsight为MindSpore提供了简单易用的调优调试能力。在训练过程中,可以将标量、张量、图像、计算图、模型超参、训练耗时等数据记录到文件中,通过MindInsight可视化页面进行查看及分析。
SVG Text Python Vue CSV other