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

caffe2 error for detectron #4

Open
sinAshish opened this issue Dec 2, 2021 · 2 comments
Open

caffe2 error for detectron #4

sinAshish opened this issue Dec 2, 2021 · 2 comments

Comments

@sinAshish
Copy link

Hi,

I am trying to test the code on a custom dataset.
I downloaded seg_every_thing in the root, copied detections_vg3k.py to tools of the former. Built detectron from scratch, but still it gives me:
AssertionError: Detectron ops lib not found; make sure that your Caffe2 version includes Detectron module
There is no make file in the Ops lib of detectron.
How can I fix this?

@dariopavllo
Copy link
Owner

Hi,

If you get that error, it means that probably your detectron lib build failed. There should be a makefile in detectron/lib.
I'm not sure if you are building the full detectron from scratch, or just the ops build. In the former case, perhaps it's easier if you just use a pre-built version (I know that Detectron 1 is deprecated, but you can still find pre-built versions). There should be an old PyTorch nightly version that comes with pre-built Caffe2.

If you are just trying to build the lib and it fails, I remember having a similar issue and there's a workaround: facebookresearch/Detectron#122 (comment)

@lisentao
Copy link

lisentao commented Jun 8, 2022

When I test the cmr code before,I tried to run the boat set of the pascal dataset.In this process,I used detectron.It's a very bad memory.The detectron must used caffe2 which was transfer into pytorch.But the latest pytorch is not suitable with python2.7.
And I have a big problem to install pytorch with source code because I can not download the public package.

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

3 participants