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.

Strange error when extracting rgb-images and optical flow by dense flow.

See original GitHub issue

hi @zhaoyue-zephyrus

when using dense_flow to exact frames and optical flow for kinetics datasets,most of video can be successfully extracted,but others maybe will report an same error as follows resulting in extraction failure:

terminate called after throwing an instance of ‘cv::Exception’ what(): OpenCV(4.1.0) /home/lw/opencv-4.1.0/modules/core/src/cuda_info.cpp:73: error: (-217:Gpu API call) invalid device ordinal in function ‘setDevice’ Aborted (core dumped)

to these semmingly problematic video , when I using the following commands(suppose the video was renamed to test.mp4) to extract rbg-frames and optical flow individually:

./extract_gpu_ -f=test.mp4 -x=tmp/flow_x -y=tmp/flow_y -i=tmp/image -b=20 -t=1 -d=0 -s=1 -o=dir

it will be no problem!!

my dataset’s directory as follows: |------kinetics | |--------------abseiling | | |---------------------_4YTwq0-73Y_000044_000054.mp4 | | |---------------------3B32lodo2M_000059_000069.mp4 | | |-----------------------… | |--------------air_drumming | | |-------------------.03V2idM7_KY_000003_000013.mp4 | | |--------------------… | |--------------… | |--------------zumba | | |----------------- klz-HIvmlJo_000025_000035.mp4 | | |-----------------… | | |------------------ klz-HIvmlJo_000025_000035.mp4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
zhaoyue-zephyruscommented, Aug 4, 2019

@longweiwei

  1. The first problem arises because num_gpu is greater than the number of gpu you actually have on your machine.

  2. I am not quite clear about your saying run multiple programes using same executable file? Can you explain more?

1reaction
zhaoyue-zephyruscommented, Aug 8, 2019

@longweiwei I don’t think that the practice you mentioned may cause any problem. Actually the multiprocessing in the script calls extract_gpu in parallel. To modify the number of frames, consider changing the argument -t=xx which is 1 by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c++ - How do I solve an error when running dense optical flow ...
When I create an image pyramid from each of the two images and try to perform an optical flow using the calcOpticalFlowFarneback method, ......
Read more >
What is Optical Flow and why does it matter in deep learning
It takes two images, concatenates them and feeds them to a network. The image pair is then processed and motion information is extracted....
Read more >
Optical Flow Estimation with Occlusion Detection - MDPI
The dense optical flow estimation under occlusion is a challenging task. ... feature matching, motion edges, warped images and occlusion consistency.
Read more >
optical flow estimation and action localization in videos
2.4 Image matching in optical flow estimation . ... estimated motion is used for extracting trajectories and describing them.
Read more >
Unsupervised learning of object frames by dense equivariant ...
learning a dense labelling function that maps image pixels to their corresponding ... objects having frames related by known optical flow (section 4)....
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