1

My Android App got crashed at this method while i debug my application using Android Studio debugger ##

Have no clue how to solve this issue

private void loadModel() {
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    // Add 2 classifier arrayList
                    // the tensorflow classifier and the keras classifier
                    mClassifier.add(TensorFlowClassifier.create(MainActivity.this.getAssets(),
                            "TensorFlow", "opt_mnist_convent-tf.pb", "labels.txt", PIXEL_WIDTH,
                            "input", "output", true));
                    mClassifier.add(TensorFlowClassifier.create(
                            MainActivity.this.getAssets(), "keras", "opt_mnist_convent-keras.pb",
                            "labels.txt", PIXEL_WIDTH, "conv2d_1_input", "dense_2/Softmax", false
                    ));
                } catch (final Exception e) {
                    throw new RuntimeException("Error initializing classifier!", e);
                }
            }
        }).start();
Amit arya
  • 11
  • 3

0 Answers0