Running render_scene in Jupyter notebook throws error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- jupyter-notebook, opencv, python
- Domain
- computer-vision, data-visualization
Research direction
Reproduce the Kaggle notebook example and read lyftdataset.py around render_scene, especially the cv2.namedWindow call shown in the traceback. Determine how the Jupyter environment differs from a script, then verify that render_scene completes in a notebook without the reported OpenCV error while still working from a Python script.
Written by the indexing model from the issue text.
Description
Hey,
I've found an issue related to render_scene function, running it in Jupyter notebook throws following error:
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-51-13531c073da2> in <module>
----> 1 level5data.render_scene(my_scene['token'])
/opt/conda/lib/python3.6/site-packages/lyft_dataset_sdk/lyftdataset.py in render_scene(self, scene_token, freq, imwidth, out_path)
507
508 def render_scene(self, scene_token: str, freq: float = 10, imwidth: int = 640, out_path: str = None) -> None:
--> 509 self.explorer.render_scene(scene_token, freq, image_width=imwidth, out_path=out_path)
510
511 def render_scene_channel(
/opt/conda/lib/python3.6/site-packages/lyft_dataset_sdk/lyftdataset.py in render_scene(self, scene_token, freq, image_width, out_path)
1154
1155 window_name = "{}".format(scene_rec["name"])
-> 1156 cv2.namedWindow(window_name)
1157 cv2.moveWindow(window_name, 0, 0)
1158
error: OpenCV(4.1.0) /io/opencv/modules/highgui/src/window.cpp:610: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvNamedWindow'
Running the same function in a python script works perfectly fine.
Here's my Kaggle kernel which you can copy and rerun to produce the error:
https://www.kaggle.com/rishabhiitbhu/eda-understanding-the-dataset
- Dominant language
- Jupyter Notebook
- Stars
- 390
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lyft/nuscenes-devkit
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
lyft/nuscenes-devkit#106 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
lyft/nuscenes-devkit#105 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
lyft/nuscenes-devkit#104 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
lyft/nuscenes-devkit#103 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
lyft/nuscenes-devkit#99 ·
All issues in lyft/nuscenes-devkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ros-perception/image_pipeline#1198 ·
-
radon(circle=True) fails for images with a singleton heightPossibly taken @whyvineet claimed this 1 day ago. Open:bug: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
scikit-image/scikit-image#8348 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
activeloopai/deeplake#3256 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
CPU k-means returns a random input color instead of the mean when k = 1Possibly taken @nitin-kumar-code claimed this 2 days ago. Openbug taken
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Ryan-Millard/Img2Num#681 · 7 comments ·
Maintainers usually reply within 2 days