AI 模型量化的使用

在使用xquant(2.0.3版本)进行量化时,D:\Python\Python311>python -m xquant -c./wifo.json -i WiFo_model_batch_1.onnx -o WiFo_model_batch_1_q.q.onnx

输出信息显示:
2025-09-11 18:43:34 | xquant.xquant_setting | INFO | Not set output_prefix, deatults to WiFo_model_batch_1.q.
2025-09-11 18:43:34 | xquant.xquant_pipeline | INFO | using api input onnx model WiFo_model_batch_1.onnx.
2025-09-11 18:43:34 | xquant.xquant_pipeline | INFO | using api output path WiFo_model_batch_1_q.q.onnx.
2025-09-11 18:43:34 | xquant.onnx_graph_helper | WARNING | convert ai.onnx version 12 to 17…
2025-09-11 18:43:35 | xquant.onnx_graph_helper | INFO | simplify onnx model…
2025-09-11 18:43:39 | xquant.quantizer.xquantizer | INFO | Set Bias to Float32.
2025-09-11 18:43:39 | xquant.quantizer.xquantizer | INFO | Set Bias to Float32.
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "D:\Python\Python311\Lib\site-packages\xquant_main
.py", line 38, in
quantize_onnx_model(args.config, args.input_path, args.output_path)
File “D:\Python\Python311\Lib\site-packages\xquant\xquant_pipeline.py”, line 193, in quantize_onnx_model
data = collate_fn(data)
^^^^^^^^^^^^^^^^
File “D:\Python\Python311\Lib\site-packages\xquant\calibration_helper.py”, line 229, in call
dst_data_item[k] = calibration_data_collect(self, tuple(v), k)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:\Python\Python311\Lib\site-packages\xquant\calibration_helper.py”, line 217, in calibration_data_collect
img = np.load(batch_item)
^^^^^^^^^^^^^^^^^^^
File “D:\Python\Python311\Lib\site-packages\numpy\lib_npyio_impl.py”, line 451, in load
fid = stack.enter_context(open(os.fspath(file), “rb”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: embedded null character
请问错误原因是校准数据NPY文件的问题吗?还是配置文件json出了问题?