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

Run return test_t265_data() Error #8

Closed
chunyang-zhang opened this issue Jul 15, 2020 · 5 comments
Closed

Run return test_t265_data() Error #8

chunyang-zhang opened this issue Jul 15, 2020 · 5 comments

Comments

@chunyang-zhang
Copy link

Your work is amazing! I try to run the "testvfs" demo, but failed. Error Message : CUDA error at /home/super/Vision/vfs/testVFS/downscale.cu:92 code=18(cudaErrorInvalidTexture) "cudaBindTexture2D(0, texFine, src, width, height, stride * sizeof(float))". Have you encountered this problem? If not, do you have any ideas about it? thank you!

@menandro
Copy link
Owner

Sometimes, this error comes from the input images not found.

@chunyang-zhang
Copy link
Author

chunyang-zhang commented Jul 15, 2020

Okay,thank you for your advice!
I have checked the input images that is needed by the function(test_t265_data()):

     cv::Mat im1 = cv::imread("robot1.png", cv::IMREAD_GRAYSCALE);
     cv::Mat im2 = cv::imread("robot2.png", cv::IMREAD_GRAYSCALE);

     translationVector = cv::readOpticalFlow("translationVector.flo");
     calibrationVector = cv::readOpticalFlow("calibrationVector.flo");
     fisheyeMask8 = cv::imread("mask.png", cv::IMREAD_GRAYSCALE);

     translationVector = cv::readOpticalFlow("translationVectorHalf.flo");
     calibrationVector = cv::readOpticalFlow("calibrationVectorHalf.flo");
     fisheyeMask8 = cv::imread("maskHalf.png", cv::IMREAD_GRAYSCALE);

robot1.png, robot2.png, mask.png, maskHalf.png, calibrationVector.flo, calibrationVector.flo, translationVectorHalf.flo, calibrationVectorHalf.flo

I put these files and my program in a same directory, I'm sure that these files can be found by the program, but i also get the same error again.
Could you give some advice? thank you!

@menandro menandro added the bug Something isn't working label Aug 2, 2020
@menandro
Copy link
Owner

menandro commented Aug 2, 2020

I added a few lines to check if the images are actually found. Please check if it works for you.

@chunyang-zhang
Copy link
Author

I added a few lines to check if the images are actually found. Please check if it works for you.

Okay, thank you for your work and response! I will try it again!

@chunyang-zhang
Copy link
Author

it works! thank you very much

@menandro menandro removed the bug Something isn't working label Aug 3, 2020
@menandro menandro closed this as completed Aug 3, 2020
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

No branches or pull requests

2 participants