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

Fix segmentation fault when using gpu to resize, using opencv cudawar… #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnphho
Copy link

I could not get videocaptioning to work using the GPU and would always get a segmentation fault specifically on local cropsc = cv.resize{src=crop, dsize={256,256}}.

Doing some research on google I found someone else had a segementation fault using opencv because they were not using cudawarping and cuda to resize. I then noticed that when I luarocks torch-opencv it was warning me that it was not building with cuda support. I then found out that I did not install opencv with cuda support.

So after installing opencv with cuda support then installing torch-opencv with cuda support and lastly using cuda to resize, I was able to then use videocaptioning to work using the GPU. Tested working with OpenCV 3.1 and the latest torch-opencv.

I'm not sure if anyone is experiencing this issue and wondering if they were not how they got videocaptioning to work using the GPU.

I also tested the fix should continue to allow videocaptioning to work with the CPU instead of the GPU.

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

Successfully merging this pull request may close these issues.

1 participant