EdgeSAM icon indicating copy to clipboard operation
EdgeSAM copied to clipboard

Decoder CoreML running time problem

Open benjamin-kramer opened this issue 1 year ago • 3 comments

When running the decoder with the same number of points time after time, the running time may approach the number reported by the performance analysis of Xcode. However, this is not the usual use case of this model. Usually, one would select points iteratively, such that the size of the model input constantly changes (first 256x64x64, 1x1x2, 1x1, than 256x64x64, 1x2x2, 1x2 and so on). Every time the model is used with a different size, some internal CoreML state is discarded, and the running time is that of a first-run (which is ~10x slower!).

If the model can be designed such that it is constantly run with the same number of points (16), with some of the points being ignored, perhaps it could help resolve this issue (but I really have no idea if that's possible).

benjamin-kramer avatar Jan 21 '24 10:01 benjamin-kramer