Git Product home page Git Product logo

Comments (8)

griwodz avatar griwodz commented on August 14, 2024 1

It is a limitation that comes from CUDA because we use Textures.
Image loading uses linear memory, and the max size for newer cards is 65000x65000.
SIFT octave computation uses CudaArray, and the max size for newer cards is 65536x65535.

These numbers are just from the CUDA page on Wikipedia, but they fit with my experience. The exact number for each card can be found in the cudaDeviceProp structure (for example used in device_prop_t::print in popsift/common/device_prop.cu), but we're not checking it yet.

It is not very difficult to add a size check to enqueue() and reject images that are too big, I've just not thought about it.

from popsift.

Xel233 avatar Xel233 commented on August 14, 2024

I'v got
Could not destroy texture object: driver shutting down

from popsift.

natowi avatar natowi commented on August 14, 2024

@Xel233 only with huge images or with normal sized images, too?

from popsift.

simogasp avatar simogasp commented on August 14, 2024

Should ask @griwodz but it is very likely that there is an upper bound on the size of the images. And a hw limitation too, ie it depends on the size of the RAM of your GPU.

from popsift.

fabiencastan avatar fabiencastan commented on August 14, 2024

Yes, if we have a way to get this information in the popsift API, we could switch to the CPU version on the AliceVision side.

from popsift.

simogasp avatar simogasp commented on August 14, 2024

in AV we have the same check/print in gpu/gpu.cpp
https://github.com/alicevision/AliceVision/blob/develop/src/aliceVision/gpu/gpu.cpp#L68

from popsift.

griwodz avatar griwodz commented on August 14, 2024

I propose PR #89 to give a better and earlier warning. The function can also be used to find out if you can use PopSift for a particular width and height or if you should use a CPU alternative.
Please note that the check depends on the current Config of that PopSift object. Cards with different CCs may have different limits, it's important to cudaSetDevice to the desired one before testing.

from popsift.

simogasp avatar simogasp commented on August 14, 2024

closed by #89

from popsift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.