question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'module' object has no attribute 'ocl'

See original GitHub issue

When invoke this command:

python2 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://s3-us-west-2.amazonaws.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

got this error:

Traceback (most recent call last):
  File "tools/infer_simple.py", line 51, in <module>
    cv2.ocl.setUseOpenCL(False)
AttributeError: 'module' object has no attribute 'ocl'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
panovrcommented, Jan 24, 2018

I compiled OpenCV 3.4 from source, and can confirm that this error was fixed by using OpenCV 3.4.

4reactions
ppwwyyxxcommented, Jan 23, 2018

Maybe you’re using opencv 2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve AttributeError: 'module' object has no attribute ...
When this code is executed I get the result, AttributeError: 'module' object has no attribute 'createBackgroundSubtractorMOG'.
Read more >
AttributeError: 'module' object has no attribute 'face' [closed]
I am trying to install OpenCV with the extra modules in opencv_contrib ... AttributeError: 'module' object has no attribute 'face' [closed].
Read more >
Path Missing 3D Surface (OCL and ... - FreeCAD Forum
3) The 3D Path menu and toolbar only have 3D Pocket available, no 3D ... <class 'AttributeError'>: module 'ocl' has no attribute 'CylCutter'...
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
Error loading napari-pyclesperanto-assistant - Usage & Issues
_napari_plugin' 319 if self.is_registered(module): File ... 57 return result AttributeError: 'SignalInstance' object has no attribute ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found