Syn-McJ / TFClassify-Unity

An example of using Tensorflow with Unity for image classification and object detection.
MIT License
167 stars 47 forks source link

Getting Error when test on iOS #19

Closed RaymondZxL closed 5 years ago

RaymondZxL commented 6 years ago

So I got errors while testing the app on iOS

iOS version: 12.1 Unity version: 2018.2.15f1

Error: F tensorflow/core/graph/graph.cc:238] Non-OK-status: status status: Not found: Op type not registered 'NoOp'

Is it version problem with iOS?

Syn-McJ commented 6 years ago

Hi @RaymondZxL, I haven't tested this example on iOS unfortunately, so I'm not sure what the problem could be. Maybe sometime in future I'll get a iOS device and check it.

RaymondZxL commented 6 years ago

@Syn-McJ Okay, I will try figure it out. It seems like it's the TFsharp getting value 'NoOp' during constructing the TFGraph, and for some reason 'NoOp' is not one of the option.

Thanks anyway!

Syn-McJ commented 5 years ago

Hi @RaymondZxL, I know it's super late, but I just managed to get a hold of ios device and a mac and tested the sample. I did encounter your problem, but it seems to be fixable with next steps in Xcode:

In Build Settings > Linking > Other Linker Flags: Double click on the flag list to expand the list Add -force_load Drag the library libtensorflow-core.a from the Project Navigator on the left under Libraries/ML-Agents/Plugins/iOS into the flag list, after -force_load.

Solution found here and more info here.