caffe-android-demo icon indicating copy to clipboard operation
caffe-android-demo copied to clipboard

Loading multiple CNNs

Open nmfelemban opened this issue 6 years ago • 0 comments

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

nmfelemban avatar Dec 27 '18 22:12 nmfelemban