dinglufe / segment-anything-cpp-wrapper

MIT License
221 stars 34 forks source link

help!!! I use it as this,but get error:not enough space: expected 4194304, got 0. My memory is enough.What's wrong? #31

Closed yjl617 closed 11 months ago

yjl617 commented 11 months ago

help!!! I use it as this,but get error:not enough space: expected 4194304, got 0. My memory is enough.What's wrong? thresholdMat = sam.getMask({500,400});

dinglufe commented 11 months ago

Can reducing the parameters solve this issue? For example, (50, 40).

yjl617 commented 11 months ago

Thank you for your reply. I have resolve this problem. I think maby is some version not right.

klein0809 commented 8 months ago

help!!! I use it as this,but get error:not enough space: expected 4194304, got 0. My memory is enough.What's wrong? thresholdMat = sam.getMask({500,400});

Hello, I have the same issue. How do you solve it? Appreciate!