caffe-android-demo
caffe-android-demo copied to clipboard
Loading multiple CNNs
I am trying to build an app that uses two different CNNs, (we would need to interchange between the two cnns).
I tried defining two instances of the CaffeMoblie class (say cnn1, cnn2), if I call on cnn1.predictImage(), it will use cnn2 (the second one loaded ) .
Is there a way to use two CNNs in the same activity, and only load them once (I don't want the overhead of loading the model every time I need to process an image), I would like to load both models at the beginning, and then use them.
Thank you