dinglufe/segment-anything-cpp-wrapper

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

yjl617 opened this issue · 3 comments

yjl617 commented

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});

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

yjl617 commented

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

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!