miyosuda / TensorFlowAndroidDemo

TensorFlow Android stand-alone demo
275 stars 120 forks source link

Feed input 0 when trying out a new tensorflow model #5

Open jitendrajain opened 8 years ago

jitendrajain commented 8 years ago

Hi,

I wanted to try out a different Tensoflow model with this project. Made following changes in "TensorflowImageListener" class such that it points to new tensorflow model: a. "MODEL_FILE" b. "LABEL_FILE" c. "NUM_CLASSES"

Tensorflow model loads successfully without any issue but i get following error E/native: tensorflow_jni.cc:300 Error during inference: Not found: FeedInputs: unable to find feed output input:0

I want to change input layer and output layer name, but there does not seem to be a way to change it. Can you please help with this.

Would really appreciate any guidance or help on how to try out a different tensorflow model with this project.

Thanks!

elich11 commented 8 years ago

You can change it in the jni file (tensorflow_jni.cc)