You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py", line 107, in __call__
ret = func(*args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/pytorch2onnx.py", line 98, in torch2onnx
export(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py", line 356, in _wrap
return self.call_function(func_name_, *args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py", line 326, in call_function
return self.call_function_local(func_name, *args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py", line 275, in call_function_local
return pipe_caller(*args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py", line 107, in __call__
ret = func(*args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/onnx/export.py", line 138, in export
torch.onnx.export(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 516, in export
_export(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 1613, in _export
graph, params_dict, torch_out = _model_to_graph(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/onnx/optimizer.py", line 27, in model_to_graph__custom_optimizer
graph, params_dict, torch_out = ctx.origin_func(*args, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 1139, in _model_to_graph
graph = _optimize_graph(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 677, in _optimize_graph
graph = _C._jit_pass_onnx(graph, operator_export_type)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 1957, in _run_symbolic_function
return symbolic_fn(graph_context, *inputs, **attrs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/symbolic_opset9.py", line 7153, in onnx_placeholder
return torch._C._jit_onnx_convert_pattern_from_subblock(block, node, env)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/utils.py", line 1957, in _run_symbolic_function
return symbolic_fn(graph_context, *inputs, **attrs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/symbolic_opset11.py", line 236, in index_put
broadcast_index_shape = g.op("Shape", index)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/_internal/jit_utils.py", line 87, in op
return _add_op(self, opname, *raw_args, outputs=outputs, **kwargs)
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/_internal/jit_utils.py", line 246, in _add_op
node = _create_node(
File "/home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/torch/onnx/_internal/jit_utils.py", line 307, in _create_node
_C._jit_pass_onnx_node_shape_type_inference(node, params_dict, opset_version)
RuntimeError: The serialized model is larger than the 2GiB limit imposed by the protobuf library. Therefore the output file must be a file path, so that the ONNX external data can be written to the same directory. Please specify the output file name.
05/16 11:04:22 - mmengine - ERROR - /home/maxime/Documents/classification/.venv/lib/python3.10/site-packages/mmdeploy/apis/core/pipeline_manager.py - pop_mp_output - 80 - `mmdeploy.apis.pytorch2onnx.torch2onnx` with Call id: 0 failed. exit.
Reproduction
This is the config file for the MViT test_mvit_sequence.py
Checklist
Describe the bug
I trained a MViT from mmaction2 and would like to deploy the trained model.
However, the following command:
Gives the following error:
Reproduction
This is the config file for the MViT
test_mvit_sequence.py
And this is the config for the deploy
video-recognition_3d_tensorrt_static-224x224.py
Environment
Error traceback
No response
The text was updated successfully, but these errors were encountered: