-
Notifications
You must be signed in to change notification settings - Fork 459
Description
When trying to convert the Spleeter 2-stem model I get the error below. The frozen model can be found here.
Here's the command line I tried:
python -m tf2onnx.convert --input \models\spleeter_2stems.pb --output \models\spleeter_2stems.onnx --inputs Placeholder:0 --outputs strided_slice_13:0, strided_slice_23:0
Traceback (most recent call last):
File "...\Python37_64\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "...\Python37_64\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "...\Python37\site-packages\tf2onnx\convert.py", line 185, in
main()
File "...\Python37\site-packages\tf2onnx\convert.py", line 163, in main
const_node_values=const_node_values)
File "...\Python37\site-packages\tf2onnx\tfonnx.py", line 410, in process_tf_graph
outputs_to_values, outputs_to_dtypes = compute_const_folding_using_tf(tf_graph, const_node_values)
File "...\Python37\site-packages\tf2onnx\tf_utils.py", line 159, in compute_const_folding_using_tf
outputs_to_values[node.outputs[0].name] = get_tf_tensor_data(tensor)
File "...\Python37\site-packages\tf2onnx\tf_utils.py", line 71, in get_tf_tensor_data
np_data = tensor_util.MakeNdarray(tensor)
File "...\Python37_64\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 645, in MakeNdarray
values = np.pad(values, (0, num_elements - values.size), "edge")
File "<array_function internals>", line 6, in pad
File "...\Python37_64\lib\site-packages\numpy\lib\arraypad.py", line 746, in pad
pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
File "...\Python37_64\lib\site-packages\numpy\lib\arraypad.py", line 513, in _as_pairs
raise ValueError("index can't contain negative values")
ValueError: index can't contain negative values
Any ideas?