Open HemanthSingh opened 2 years ago
There is no mapping for coordinate_transformation_mode=pytorch_half_pixel therefore a known limitation in converting Resize operator.
How can I resolve this problem? I can't do it.
Is there any solution for this bug ?
This is an old problem I've already solved. Fix here: https://github.com/onnx/onnx-tensorflow/issues/632
This is an old problem I've already solved. Fix here: #632
can I get onnx_utils.py. from your repo ?
This is an old problem I've already solved. Fix here: #632
can I get onnx_utils.py. from your repo ?
You can get it here. I know, it's a lot of code and maybe the conversion to int_32 is also bugged, but take just the functions you need.
When I export onnx model to tensorflow using the following code:
following run time error occurs:
File "C:\darknet\data\temp.py", line 18, in
tf_rep.export_graph("model.pb")
File "C:\ProgramData\Anaconda3\lib\site-packages\onnx_tf\backend_rep.py", line 132, in export_graph signatures=self.tf_module.call.get_concrete_function(
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py", line 1264, in get_concrete_function concrete = self._get_concrete_function_garbage_collected(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py", line 1244, in _get_concrete_function_garbage_collected self._initialize(args, kwargs, add_initializers_to=initializers)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py", line 785, in _initialize self._stateful_fn._get_concrete_function_internal_garbage_collected( # pylint: disable=protected-access
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 2983, in _get_concrete_function_internal_garbage_collected graphfunction, = self._maybe_define_function(args, kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 3292, in _maybe_define_function graph_function = self._create_graph_function(args, kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 3130, in _create_graph_function func_graph_module.func_graph_from_py_func(
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py", line 1161, in func_graph_from_py_func func_outputs = python_func(*func_args, **func_kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py", line 677, in wrapped_fn out = weak_wrapped_fn().wrapped(*args, **kwds)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 3831, in bound_method_wrapper return wrapped_fn(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py", line 1147, in autograph_handler raise e.ag_error_metadata.to_exception(e)
RuntimeError: in user code:
Version info: