Network-wide Information File
The following describes how to obtain an offline model using the ATC model conversion tool. For more operations, see the ATC Instructions.
- Log in to an Ascend AI environment where the Ascend-CANN-Toolkit has been installed.
- Obtain the original model files and save them in any directory.
Example: resnet50*.onnx
- Perform ATC-based model conversion.
atc --model=$HOME/module/resnet50*.onnx --framework=5 --output=$HOME/module/out/onnx_resnet50 --soc_version=<soc_version>You should see information similar to the following if the conversion is successful.1ATC run success
Find the generated offline model (for example, onnx_resnet50.om) in the path specified by --output.
- Generate a .json file.
atc --mode=1 --om=$HOME/module/out/onnx_resnet50.om --json=$HOME/module/out/onnx_resnet50.json
You should see information similar to the following if the JSON file conversion is successful.
1ATC run success
After successful execution, you can check the .json file in the path specified by --json.
Parent topic: Comparison Between GPU and NPU (ONNX Offline Inference)