-
Notifications
You must be signed in to change notification settings - Fork 114
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 image crash [bug] #105
Comments
are you using |
@simogasp yes, i using popsift-demo, but But I set the config parameter to: and crash at get_descriptor function(sift_pyramid.cu file 317 line). |
Strange. That error was typical for ext_total==0, but not when ext_total>0. It is possible that the error is actually somewhere else. Could you enable PopSift_ERRCHK_AFTER_KERNEL in CMake and recompile? That should activate error checking in lines that say POP_SYNC_CHK. Your code will run slower and still crash, but closer to the true origin of the crash. What is your GPU? Do your CPU and GPU share memory? |
@griwodz ,Thank you for your reply. I've found out the reason. I set _max_extrema to 10000, and when initializing pyramid ,it set dbuf_shadow.desc = malloc(2 * _max_extrema). I extracted 44599 descriptors in this image |
@lizhaohu Thanks for finding the reason for the crash. That is still very strange. In the figure of the Config that you show above, you are setting _max_extrema = 10000, but you have found 19558 (ext_total). That should not be happening. There is a line: Do you perhaps change the max_extrema to 20000 somewhere else? |
PS: a hotfix to prevent a crash over 100% additional descriptor seems to be simple. It would be better, of course, to reallocate memory after that kernel. |
@griwodz I didn't set max_extrema = 20000 anywhere else. In my understanding, max_extrema means the maximum number of features that can be extracted from each layer of pyramid. So I got that 19558 was the right result @griwodz In sift_ pyramid.cu file the reallocaxtreme function will be re-malloc the memory |
@griwodz Great. Thank you very much |
Describe the bug
When I run popsift for one image crash,The default parameters are used
my email: [email protected]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Log
If applicable, copy paste the relevant log output (please embed the text in a markdown code tag "```" )
Desktop (please complete the following and other pertinent information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: