facebookresearch / Detectron

FAIR's research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.
Apache License 2.0
26.22k stars 5.45k forks source link

program stuck at Found Detectron ops lib: /usr/local/lib/libcaffe2_detectron_ops_gpu.so after running infer_simpe.py #917

Open gaurav67890 opened 5 years ago

gaurav67890 commented 5 years ago

PLEASE FOLLOW THESE INSTRUCTIONS BEFORE POSTING

  1. Please thoroughly read README.md, INSTALL.md, GETTING_STARTED.md, and FAQ.md
  2. Please search existing open and closed issues in case your issue has already been reported
  3. Please try to debug the issue in case you can solve it on your own before posting

After following steps 1-3 above and agreeing to provide the detailed information requested below, you may continue with posting your issue

(Delete this line and the text above it.)

Expected results

What did you expect to see?

Actual results

What did you observe instead?

Detailed steps to reproduce

E.g.:

The command that you ran

System information

gaurav67890 commented 5 years ago

After running the inference command python tools/infer_simple.py \ --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml \ --output-dir /tmp/detectron-visualizations \ --image-ext jpg \ --wts https://dl.fbaipublicfiles.com/detectron/35861858/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml.02_32_51.SgT4y1cO/output/train/coco_2014_train:coco_2014_valminusminival/generalized_rcnn/model_final.pkl \ demo

Program is only showing Found Detectron ops lib: /usr/local/lib/libcaffe2_detectron_ops_gpu.so and nothing happening afterwards .

Any solution for this ?

wzhang-apixio commented 4 years ago

I got the same issue.

gaurav67890 commented 4 years ago

It is because libcaffe2_detecton_ops_gpu.so was created by different python version. When I removed this file and rebuild with my existing python version,then it worked for me.

wzhang-apixio commented 4 years ago

Thanks. it works.