{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23628","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23628/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23628/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23628/events","html_url":"https://github.com/tensorflow/tensorflow/issues/23628","id":379113362,"node_id":"MDU6SXNzdWUzNzkxMTMzNjI=","number":23628,"title":"Caused by: java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model","user":{"login":"wangyongqi","id":20412297,"node_id":"MDQ6VXNlcjIwNDEyMjk3","avatar_url":"https://avatars2.githubusercontent.com/u/20412297?v=4","gravatar_id":"","url":"https://api.github.com/users/wangyongqi","html_url":"https://github.com/wangyongqi","followers_url":"https://api.github.com/users/wangyongqi/followers","following_url":"https://api.github.com/users/wangyongqi/following{/other_user}","gists_url":"https://api.github.com/users/wangyongqi/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyongqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyongqi/subscriptions","organizations_url":"https://api.github.com/users/wangyongqi/orgs","repos_url":"https://api.github.com/users/wangyongqi/repos","events_url":"https://api.github.com/users/wangyongqi/events{/privacy}","received_events_url":"https://api.github.com/users/wangyongqi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-09T10:50:12Z","updated_at":"2018-11-15T07:00:42Z","closed_at":null,"author_association":"NONE","body":"When I put the tflite file trained by the ssdmobilenet model into Android studio, the following error occurred. Who can help me? Below is my configuration information and wrong information.\r\n![image](https://user-images.githubusercontent.com/20412297/48258352-d7456a00-e44f-11e8-8f24-4de8aa60ebf0.png)\r\n\r\n![image](https://user-images.githubusercontent.com/20412297/48258389-f3490b80-e44f-11e8-8ea2-4bbf099763e7.png)\r\n \r\nE/AndroidRuntime: FATAL EXCEPTION: main\r\n    Process: org.tensorflow.lite.demo, PID: 20339\r\n    java.lang.RuntimeException: java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model\r\n        at org.tensorflow.demo.TFLiteObjectDetectionAPIModel.create(TFLiteObjectDetectionAPIModel.java:124)\r\n        at org.tensorflow.demo.DetectorActivity.onPreviewSizeChosen(DetectorActivity.java:110)\r\n        at org.tensorflow.demo.CameraActivity$5.onPreviewSizeChosen(CameraActivity.java:362)\r\n        at org.tensorflow.demo.CameraConnectionFragment.setUpCameraOutputs(CameraConnectionFragment.java:401)\r\n        at org.tensorflow.demo.CameraConnectionFragment.openCamera(CameraConnectionFragment.java:408)\r\n        at org.tensorflow.demo.CameraConnectionFragment.access$000(CameraConnectionFragment.java:64)\r\n        at org.tensorflow.demo.CameraConnectionFragment$1.onSurfaceTextureAvailable(CameraConnectionFragment.java:95)\r\n        at android.view.TextureView.getHardwareLayer(TextureView.java:390)\r\n        at android.view.TextureView.draw(TextureView.java:339)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18168)\r\n        at android.view.View.draw(View.java:18946)\r\n        at android.view.ViewGroup.drawChild(ViewGroup.java:4238)\r\n        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18159)\r\n        at android.view.View.draw(View.java:18946)\r\n        at android.view.ViewGroup.drawChild(ViewGroup.java:4238)\r\n        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024)\r\n        at android.view.View.draw(View.java:19221)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18168)\r\n        at android.view.View.draw(View.java:18946)\r\n        at android.view.ViewGroup.drawChild(ViewGroup.java:4238)\r\n        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18159)\r\n        at android.view.View.draw(View.java:18946)\r\n        at android.view.ViewGroup.drawChild(ViewGroup.java:4238)\r\n        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18159)\r\n        at android.view.View.draw(View.java:18946)\r\n        at android.view.ViewGroup.drawChild(ViewGroup.java:4238)\r\n        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024)\r\n        at android.view.View.draw(View.java:19221)\r\n        at com.android.internal.policy.DecorView.draw(DecorView.java:791)\r\n        at android.view.View.updateDisplayListIfDirty(View.java:18168)\r\n        at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:676)\r\n        at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:682)\r\n        at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:790)\r\n        at android.view.ViewRootImpl.draw(ViewRootImpl.java:3050)\r\n        at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2845)\r\n        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2398)\r\n        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1431)\r\n        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6861)\r\n        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1026)\r\n        at android.view.Choreographer.doCallbacks(Choreographer.java:838)\r\n        at android.view.Choreographer.doFrame(Choreographer.java:769)\r\n        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1012)\r\n        at android.os.Handler.handleCallback(Handler.java:790)\r\n        at android.os.Handler.dispatchMessage(Handler.java:99)\r\n        at android.os.Looper.loop(Looper.java:164)\r\n        at android.app.ActivityThread.main(ActivityThread.java:6650)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:818)\r\n     Caused by: java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model\r\n        at org.tensorflow.lite.NativeInterpreterWrapper.createModelWithBuffer(Native Method)\r\n        at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:59)\r\n        at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:188)\r\n        at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:176)\r\n        at org.tensorflow.demo.TFLiteObjectDetectionAPIModel.create(TFLiteObjectDetectionAPIModel.java:122)\r\n        \t... 51 more\r\n Who can help me? Thanks!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/438938490","html_url":"https://github.com/tensorflow/tensorflow/issues/23628#issuecomment-438938490","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23628","id":438938490,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODkzODQ5MA==","user":{"login":"SanthoshRajendiran","id":41156980,"node_id":"MDQ6VXNlcjQxMTU2OTgw","avatar_url":"https://avatars3.githubusercontent.com/u/41156980?v=4","gravatar_id":"","url":"https://api.github.com/users/SanthoshRajendiran","html_url":"https://github.com/SanthoshRajendiran","followers_url":"https://api.github.com/users/SanthoshRajendiran/followers","following_url":"https://api.github.com/users/SanthoshRajendiran/following{/other_user}","gists_url":"https://api.github.com/users/SanthoshRajendiran/gists{/gist_id}","starred_url":"https://api.github.com/users/SanthoshRajendiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanthoshRajendiran/subscriptions","organizations_url":"https://api.github.com/users/SanthoshRajendiran/orgs","repos_url":"https://api.github.com/users/SanthoshRajendiran/repos","events_url":"https://api.github.com/users/SanthoshRajendiran/events{/privacy}","received_events_url":"https://api.github.com/users/SanthoshRajendiran/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T07:00:42Z","updated_at":"2018-11-15T07:00:42Z","author_association":"NONE","body":"Still the issue persists for DeeplabV3 - MobilenetV2 tflite for semantic segmentation.([http://download.tensorflow.org/models/deeplabv3_mnv2_pascal_train_aug_2018_01_29.tar.gz](http://download.tensorflow.org/models/deeplabv3_mnv2_pascal_train_aug_2018_01_29.tar.gz)).\r\n\r\nWe have added up a feature request for an Android Application for Deeplab.\r\n[https://github.com/tensorflow/tensorflow/issues/23747](https://github.com/tensorflow/tensorflow/issues/23747)"}}
{"actor":{"display_login":"SanthoshRajendiran"}}