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

zero numpts return !!! #86

Open
james-ht-tech opened this issue May 8, 2023 · 0 comments
Open

zero numpts return !!! #86

james-ht-tech opened this issue May 8, 2023 · 0 comments

Comments

@james-ht-tech
Copy link

hi
i have a problem with cudasift on jetson orin , unfortunately return zero numpts, i dont know why??? is it related to gpu architecture (Ampere )or cuda version(Cuda compilation tools, release 11.4, V11.4.315)?? !!!!!
int devNum = 0;
SiftData siftData1;
cv::Mat limg;
InitSiftData(siftData1, 32768, true, true);
cv::imread("img1.png", 0).convertTo(limg, CV_32FC1);
std::cout << "Image size = (" << w << "," << h << ")" << std::endl;
std::cout << "Initializing data..." << std::endl;
InitCuda(devNum);
CudaImage img1;
img1.Allocate(w, h, iAlignUp(w, 128), false, NULL, (float*)limg.data);
img1.Download();
float initBlur = 1.0f;
ExtractSift(siftData1, img1, 5, initBlur, 3.5, 0.0f, false);
std::cout << "Number of original features: " << siftData1.numPts << std::endl;
FreeSiftData(siftData1);

outputs:
./mainSift
Image size = (1920,1080)
Initializing data...
Device Number: 0
Device name: Orin
Memory Clock Rate (MHz): 612
Memory Bus Width (bits): 128
Peak Memory Bandwidth (GB/s): 19.6
SIFT extraction time = 12.29 ms 0
Incl prefiltering & memcpy = 23.52 ms 0
Number of original features: 0

idont know why return 0 numpts!!!!

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

1 participant