Skip to content
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

Getting issue while importing detectron2.export.api.Caffe2Tracer #4398

Closed
vivekkaushik1992 opened this issue Jul 12, 2022 · 3 comments
Closed
Labels
upstream issues Issues in other libraries

Comments

@vivekkaushik1992
Copy link

vivekkaushik1992 commented Jul 12, 2022

I am importing Caffe2Tracer from detectron2.export.api.Caffe2Tracer. In document old version format is mentioned and do correct that.

Once importing this, Getting Caffe2.porto "metanet_pb2" not found.

Can you share proper instruction to follow to export ONNX model from Detectron2@v0.6.

Instructions To Reproduce the Issue:

1> Install latest Detectron2
2> Import detectron2.export.api.Caffe2Tracer

import module not found " metanet_pb2" in " caffe2.porto "

I think's there is some issue with incompatibility of Torch version and Detectron version.

@github-actions github-actions bot added the needs-more-info More info is needed to complete the issue label Jul 12, 2022
@github-actions
Copy link

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

@github-actions github-actions bot removed the needs-more-info More info is needed to complete the issue label Jul 12, 2022
@tintn
Copy link

tintn commented Aug 3, 2022

With Pytorch version 1.12.0 installed with conda, the same error occurs when running:

from caffe2.proto import caffe2_pb2

I think it's the problem with PyTorch, not Detectron2.

Downgrading PyTorch to 1.10.1 fixed the error for me

@ppwwyyxx
Copy link
Contributor

Caffe2 is no longer supported by latest pytorch.

@ppwwyyxx ppwwyyxx added the upstream issues Issues in other libraries label Feb 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream issues Issues in other libraries
Projects
None yet
Development

No branches or pull requests

3 participants