CASIA-IVA-Lab / FastSAM

Fast Segment Anything
GNU Affero General Public License v3.0
7.47k stars 707 forks source link

CoreML export with variable Input Size #56

Closed okdha1234 closed 1 year ago

okdha1234 commented 1 year ago

Hi, Can someone help in understanding how to give variable input image sizes to FastSAM model exported in onnx format, currently it takes only (1024,1024) size image which is leading to mismatch in desired outcome

an-yongqi commented 1 year ago

Hi, @okdha1234

46 discusses the same issue and gives reference code that will hopefully solve your problem.