How Do I Handle a Model Conversion Failure?
You can view the model conversion logs to locate the failure cause and rectify the fault accordingly.
- Viewing Model Conversion Logs: View the model conversion logs to locate the failure cause.
- Resolving Model Conversion Failures: Common causes and solutions for model conversion failures.
Viewing Model Conversion Logs
- Log in to the Huawei HiLens console. In the navigation pane, choose Skill Development > Models. The Models page is displayed.
If the model fails to convert, you can view that the model status is Conversion failed.
- Locate the failed model and click Details in the Operation column. The Model Details page is displayed.
You can view the Basic Information and Log Information of the model, as shown in Figure 1.
You can enter a keyword about the failed model in the search box of the Log Information area to quickly locate the failure cause.
Resolving Model Conversion Failures
Solutions for common model conversion failures:
- Check whether the uploaded model file is correct.
Before importing a custom model, upload it to OBS. A non-om model package contains Caffe model files .caffemodel and .prototxt and configuration file .cfg, or TensorFlow model file .pb and configuration file .cfg.
- Check whether the model to be imported or converted uses the TensorFlow or Caffe operator boundaries supported by .om models.
Not all models can be successfully converted. Before importing and converting a model, check whether it uses the TensorFlow and Caffe operator boundaries supported by .om models. For details, see Caffe Operator Boundaries and TensorFlow Operator Boundaries.
- Check whether the parameters are correctly set for model conversion.
For details about the parameters, see Importing (Converting) Models. The parameters that may be incorrectly set are listed below.
- Input Tensor Shape
Mandatory. The shape of the input data, in the format of NHWC, for example, input_name:1,224,224,3. input_name must be a node name in the network model before model conversion, which must be configured when the model has dynamic shape input. For example, in input_name1:?,h,w,c, the question mark (?) indicates the batch size, that is, the number of images processed at a time. It is used to convert the original model with a dynamic shape into an offline model with a fixed shape.
Use commas to separate multiple inputs.
- Type
Select the correct model conversion type for the imported model.
- TF-FrozenGraph-To-Ascend-HiLens
This template converts TensorFlow frozen_graph models into those run on Ascend chips. If the firmware version of your HiLens Kit system is 2.2.200.011, you are advised to use this template for model conversion.
- TF-SavedModel-To-Ascend-HiLens
This template converts TensorFlow saved_model models into those run on Ascend chips. If the firmware version of your HiLens Kit system is 2.2.200.011, you are advised to use this template for model conversion.
- TF-FrozenGraph-To-Ascend
This template converts TensorFlow frozen_graph models into those run on Ascend chips. If the firmware version of your HiLens Kit system is earlier than 2.2.200.011, you are advised to use this template for model conversion.
- TF-SavedModel-To-Ascend
This template converts TensorFlow saved_model models into those run on Ascend chips. If the firmware version of your HiLens Kit system is earlier than 2.2.200.011, you are advised to use this template for model conversion.
- Caffe to Ascend
Caffe models can be converted into models that can run on Ascend chips.
- TF-FrozenGraph-To-Ascend-893
This template converts TensorFlow frozen_graph models into those run on Ascend chips. If the firmware version of your HiLens Kit system is earlier than 2.2.200.011, you are advised to use this template for model conversion.
- TF-FrozenGraph-To-Ascend-HiLens
- Import From
For Ascend chip-supported models developed locally or developed in ModelArts and converted on HiLens, set this parameter by referring to Model Input Directory Specifications.
- The model input directory cannot contain multiple models.
- The directory must contain the model file. Other files are optional.
- Export To
For conversion tasks of models supported by Ascend chips, set this parameter by referring to Model Output Directory Specifications.
- Input Tensor Shape
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot