dinglufe / segment-anything-cpp-wrapper

MIT License
221 stars 34 forks source link

loadImage #48

Closed TPF0628 closed 2 months ago

TPF0628 commented 3 months ago

When running the Run function in the loadImage function, it is always slow, is there any solution? Is the process a must every time a new picture is loaded? Can it be reused to reduce pre-treatment time?

WilliManFR commented 2 months ago

The only solution is to have a good gpu and run with cuda device. If you are running it on cpu, I'm not surprised. Image embedding is not real time (cf : paper of sam) !