TensorFlowAndroidDemo icon indicating copy to clipboard operation
TensorFlowAndroidDemo copied to clipboard

Facing crash issue when trying out a new tensorflow model

Open jitendrajain opened this issue 8 years ago • 3 comments

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"

App crashes (added error logs below) as it tries to load the model.

Error Log: tensorflow_jni.cc:126 Reading file to proto: file:///android_asset/tensorflow_inception_graph.pb jni_utils.cc:111 Opening asset tensorflow_inception_graph.pb from disk with copy. jni_utils.cc:115 Check failed: message->ParseFromArray(memory, data_size) A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 12646 (ImageListener)

I would like to know if I am on right track. Is there any other changes that are needed to try out a different tensorflow model.

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

Thanks!

jitendrajain avatar Aug 05 '16 13:08 jitendrajain

Same problem in my case with a new model. Any news about it? Thanks!

catherineHR avatar Sep 19 '16 08:09 catherineHR

same problem in my program with yolo model the file(.pb) is 108.4 MB Have any solution? thanks you

wu-yi-ting avatar Oct 21 '16 10:10 wu-yi-ting

Hi guys,

I have the same issue, maybe you can check your model version(v5 or v3) . This issue happened your model version and you may check the tesnsorflow issues to find the discussion.

yichunyen avatar Oct 21 '16 10:10 yichunyen