You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this due to the mxnet_predict-all.cc file being too old? I am not sure how to generate a new one.
Is this because MXNet and BMXNet use different params formats?
Any ideas on how I could solve this?
The text was updated successfully, but these errors were encountered:
Hey, which iPhone model are you using? (out of curiosity regarding your measured speed)
The included mxnet should be sufficient - we have two different formats of packing the params though: one works on 32 bit wide variables and the other on 64 bit. You are using a model trained with 64 bit (see the name) with an app compiled to use 32 bit.
Check your xcode build settings -> preprocessor macros -> change BINARY_WORD_32 to 0 and BINARY_WORD_64 to 1
Okay this fixed it! Had to clean the whole project cause Xcode doesn't seem to understand what macros are...
I ran the code on an iPhone 6S. After enabling release mode I could get about 2 FPS.
Note though that just using https://github.com/hollance/Forge I get about 5 FPS.
Is 2 FPS the kind of speed I should be expecting or is there something wrong here?
Out of the box everything works, albeit slowly (2-3s per inference).
However using the models at https://github.com/hpi-xnor/BMXNet/tree/d5d8c488ba06c3eaafd04039640f960e2f02e0de/smd_hpi/binary_models
for instance with
binarized_imagenet-resnet18-64bit
I get:Is this due to the mxnet_predict-all.cc file being too old? I am not sure how to generate a new one.
Is this because MXNet and BMXNet use different params formats?
Any ideas on how I could solve this?
The text was updated successfully, but these errors were encountered: