Skip to content

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

@paul-ml75

Description

@paul-ml75

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions