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

ImportError: cannot import name 'Caffe2Tracer' from 'detectron2.export' #47

Open
paul-ml75 opened this issue Mar 26, 2023 · 1 comment

Comments

@paul-ml75
Copy link

paul-ml75 commented Mar 26, 2023

Hey guys!

i'm using this command on export_model.py in order to save a torchscript model:

python3 tools/deploy/export_model.py --config-file configs/Base-RetinaNet.yaml --format torchscript --output test

But I get this error:

File "/transfiner-main/tools/deploy/export_model.py", line 14, in
from detectron2.export import (
ImportError: cannot import name 'Caffe2Tracer' from 'detectron2.export' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/detectron2/export/init.py)

I'm using pytorch v2.

do you have any idea how to fix this issue I got?

thank you,

Paul

@lkeab
Copy link
Collaborator

lkeab commented Mar 28, 2023

Hi, this project is supported in pytorch==1.7.1. I am not sure for the pytorch v2 support. You can refer to the discussion here for detectron2 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants