操作类型未在本地主机上运行的二进制文件中注册“ TFLite_Detection_PostProcess”

时间:2018-08-06 12:58:59

标签: android

将yolo自定义模型集成到android源代码中时遇到了错误。

  

08-06 18:11:35.524 2934-2934 / org.tensorflow.yolo E / AndroidRuntime:   致命异常:主要       流程:org.tensorflow.yolo,PID:2934       org.tensorflow.TensorFlowException:操作类型未在本地主机上运行的二进制文件中注册“ TFLite_Detection_PostProcess”。使   确保在此运行的二进制文件中注册了Op和Kernel   处理。           在org.tensorflow.Graph.importGraphDef(本机方法)           在org.tensorflow.Graph.importGraphDef(Graph.java:130)           在org.tensorflow.Graph.importGraphDef(Graph.java:114)           在org.tensorflow.contrib.android.TensorFlowInferenceInterface.loadGraph(TensorFlowInferenceInterface.java:561)           在org.tensorflow.contrib.android.TensorFlowInferenceInterface。(TensorFlowInferenceInterface.java:105)           在org.tensorflow.yolo.TensorFlowImageRecognizer.create(TensorFlowImageRecognizer.java:42)           在org.tensorflow.yolo.view.ClassifierActivity.onPreviewSizeChosen(ClassifierActivity.java:55)           在org.tensorflow.yolo.view.CameraActivity.lambda $ setFragment $ 0 $ CameraActivity(CameraActivity.java:117)           在org.tensorflow.yolo.view.CameraActivity $$ Lambda $ 0.onPreviewSizeChosen(未知   资源)           在org.tensorflow.yolo.view.CameraConnectionFragment.setUpCameraOutputs(CameraConnectionFragment.java:291)           在org.tensorflow.yolo.view.CameraConnectionFragment.openCamera(CameraConnectionFragment.java:298)           在org.tensorflow.yolo.view.CameraConnectionFragment.access $ 000(CameraConnectionFragment.java:52)           在org.tensorflow.yolo.view.CameraConnectionFragment $ 1.onSurfaceTextureAvailable(CameraConnectionFragment.java:163)           在android.view.TextureView.getHardwareLayer(TextureView.java:395)           在android.view.TextureView.draw(TextureView.java:344)           在android.view.View.updateDisplayListIfDirty(View.java:16390)           在android.view.View.draw(View.java:17201)           在android.view.ViewGroup.drawChild(ViewGroup.java:3857)           在android.view.ViewGroup.dispatchDraw(ViewGroup.java:3643)           在android.view.View.updateDisplayListIfDirty(View.java:16382)           在android.view.View.draw(View.java:17201)           在android.view.ViewGroup.drawChild(ViewGroup.java:3857)           在android.view.ViewGroup.dispatchDraw(ViewGroup.java:3643)           在android.view.View.draw(View.java:17463)           在android.view.View.updateDisplayListIfDirty(View.java:16390)           在android.view.View.draw(View.java:17201)           在android.view.ViewGroup.drawChild(ViewGroup.java:3857)           在android.view.ViewGroup.dispatchDraw(ViewGroup.java:3643)           在android.view.View.updateDisplayListIfDirty(View.java:16382)           在android.view.View.draw(View.java:17201)           在android.view.ViewGroup.drawChild(ViewGroup.java:3857)           在android.view.ViewGroup.dispatchDraw(ViewGroup.java:3643)           在android.view.View.updateDisplayListIfDirty(View.java:16382)           在android.view.View.draw(View.java:17201)           在android.view.ViewGroup.drawChild(ViewGroup.java:3857)           在android.view.ViewGroup.dispatchDraw(ViewGroup.java:3643)           在com.android.internal.policy.DecorView.dispatchDraw(DecorView.java:794)           在android.view.View.draw(View.java:17463)           在com.android.internal.policy.DecorView.draw(DecorView.java:780)           在android.view.View.updateDisplayListIfDirty(View.java:16390)           在android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:653)           在android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:659)           在android.view.ThreadedRenderer.draw(ThreadedRenderer.java:767)           在android.view.ViewRootImpl.draw(ViewRootImpl.java:3203)           在android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2996)           在android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2584)           在android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1481)           在android.view.ViewRootImpl $ TraversalRunnable.run(ViewRootImpl.java:7047)           在android.view.Choreographer $ CallbackRecord.run(Choreographer.java:910)           在android.view.Choreographer.doCallbacks(Choreographer.java:712)           在android.view.Choreographer.doFrame(Choreographer.java:646)           在android.view.Choreographer $ FrameDisplayEventReceiver.run(Choreographer.java:896)           在android.os.Handler.handleCallback(Handler.java:836)           在android.os.Handler.dispatchMessage(Handler.java:103)           在android.os.Looper.loop(Looper.java:203)           在android.app.ActivityThread.main(ActivityThread.java:6339)           在java.lang.reflect.Method.invoke(本机方法)           在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1084)           在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)

0 个答案:

没有答案