mmdeploy icon indicating copy to clipboard operation
mmdeploy copied to clipboard

When i use the get_started.md ,it occur the problem

Open lijoe123 opened this issue 3 years ago • 5 comments

Hello, i follow the get_started.md to install the mmdeploy, but when i run the demo, but it occur this problem ImportError: cannot import name '_get_tensor_dim_size'...... 1 Here is my env: 2 3 Thank you!!!!

lijoe123 avatar Sep 16 '22 09:09 lijoe123

please run python3 tools/check_env.py and give outputs.

tpoisonooo avatar Sep 16 '22 11:09 tpoisonooo

Thank you for your answer. I run the python3 tools/check_env.py, it still occur the same problem 图片

lijoe123 avatar Sep 16 '22 11:09 lijoe123

How did you install mmdeploy?

lvhan028 avatar Sep 18 '22 04:09 lvhan028

It migth be the version of torch is too low. There is no _get_tensor_dim_size in torch.onnx.symbolic_helper

Can you try with torch version >= 1.8.0

irexyc avatar Sep 19 '22 02:09 irexyc

It migth be the version of torch is too low. There is no _get_tensor_dim_size in torch.onnx.symbolic_helper

Can you try with torch version >= 1.8.0

Ok, Thank you for your answer, i will try to update the torch version

lijoe123 avatar Sep 19 '22 02:09 lijoe123