Invalid parameter file name.
import mxnet as mx
import numpy as np
import sys
import os
import argparse
import onnx
print('mxnet version:', mx.__version__)
print('onnx version:', onnx.__version__)
from mxnet.contrib import onnx as onnx_mxnet
from onnx import checker
syms = './mnist-symbol.json'
params = './mnist-0000.params'
input_shape = (1,3,112,112)
onnx_file = './mnist.onnx'
# Invoke export model API. It returns path of the converted onnx model
converted_model_path = onnx_mxnet.export_model(syms, params, [input_shape], np.float32, onnx_file)
Finally, it is found that the parameter file name is wrongly written, “-” and “” I don’t know.
Read More:
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- Mxnet.gluon Load Pre Training
- [Solved] error: the following arguments are required (Default parameters are set)
- [ONNXRuntimeError] : 10 : INVALID_Graph loading model error
- Solve the error of panda index unalignable Boolean series provided as indexer
- An introduction to sys modules in Python and how packages are imported and used
- [Solved] Pdfplumber Read PDF Sheet Error: AttributeError: function/symbol ‘ARC4_stream_init‘ not found in library
- [Solved] main.py: error: the following arguments are required:
- [Solved] train.py: error: the following arguments are required: –XXXX
- SSL error of urllib3 when Python uploads files using Minio
- Python time tuples are converted to timestamps, strings
- Python: How to Delete Empty Files or Folders in the Directory
- [Solved] Pychart breakpoint error: frames are not available
- RuntimeError: Non RGB images are not supported [How to Fix]
- RuntimeError: No HIP GPUs are available [How to Solve]
- Python traverses all files under the specified path and retrieves them according to the time interval
- How to Solve Python Pandas Read or Import Files Error
- How to Solve jupyter notebook Read CSV files Error
- VScode: How to Solve Pylance Error (pip Library Files Installed)
- [Solved] ValueError: Connection error, and we cannot find the requested files in the cached path…