-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run torchvision_test, got KeyError: 'Shape not implemented yet' #41
Comments
yangji307
changed the title
run torchvision_test got errorKeyError: 'Shape not implemented yet'
run torchvision_test, got KeyError: 'Shape not implemented yet'
Apr 12, 2023
please make |
make sure python -c 'import onnxsim' |
fixed, please pull latest code and try again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
env as below:
python 3.7
numpy 1.21.6
onnx 1.12.0
onnx-simplifier 0.4.19
onnxruntime 1.14.1
opencv-python 4.7.0.72
protobuf 3.19.0
pytest 7.2.2
tensorboard 2.11.2
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.11.0
tensorflow-estimator 2.11.0
tensorflow-intel 2.11.0
tensorflow-io-gcs-filesystem 0.31.0
torch 1.9.0
torchvision 0.10.0+cu102
fail to run test_deeplabv3, and got the fllowing error msg:
`
torchvison_test.py::test_deeplabv3 FAILED [100%]
torchvison_test.py:31 (test_deeplabv3)
@pytest.mark.filterwarnings('ignore::UserWarning')
@pytest.mark.filterwarnings('ignore::DeprecationWarning')
def test_deeplabv3():
model = torchvision.models.segmentation.deeplabv3_resnet50(False)
onnx_model_path = os.path.join(MODEL_ROOT, "deeplabv3_resnet50.onnx")
torch.onnx.export(model, torch.randn(1, 3, 512, 1024), onnx_model_path, opset_version=13)
torchvison_test.py:38:
converter.py:21: in onnx_converter
keras_model = keras_builder(model_proto, native_groupconv)
onnx_model = ir_version: 6
producer_name: "pytorch"
producer_version: "1.9"
graph {
node {
input: "input.1"
output: "363"...im {
dim_param: "Resize600_dim_3"
}
}
}
}
}
}
opset_import {
version: 13
}
native_groupconv = False
E KeyError: 'Shape not implemented yet'
utils\builder.py:75: KeyError
`
The text was updated successfully, but these errors were encountered: