dinglufe / segment-anything-cpp-wrapper

MIT License
221 stars 34 forks source link

Image input 320x240 #41

Open IuliuNovac opened 8 months ago

IuliuNovac commented 8 months ago

I want to run the mobile sam at resolution 320x240. Any suggestions?

with export_pre_model.py, it still require one side to be 1024.

dinglufe commented 8 months ago

Quite surprised to find that the longer side indeed needs to be 1024. So, the workaround for now is to export a model with a resolution of 1024x768 and resize the images to fit that before running.