using faster rcnn model
Hi. Thanks for sharing your repo. I try to use the faster rcnn model I use
NSString *model = @"op_inference_graph_rcnn";
in the TensorflowGraph.mm file
but when u load the app its crash when its try to detect
you know what can cause this?
Thanks!
Hi Michael,
What phone are you using? It could be memory. Can you post a console log? I just tried that model on my iPhone 6s and it ran without crashing, although admittedly, it wasn’t anywhere near real-time; I was only processing a frame every 24 seconds or so. I will probably remove that model from the next push for this reason. There are others in the Tensorflow Model Zoo https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md that should perform better and though I haven’t tested them all you should be able to use any of the models that give boxes.
On Jun 5, 2018, at 5:38 AM, Michael Ben ami [email protected] wrote:
Hi. Thanks for sharing your repo. I try to use the faster rcnn model I use
NSString *model = @"op_inference_graph_rcnn"; in the TensorflowGraph.mm file but when u load the app its crash when its try to detect you know what can cause this? Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/csharpseattle/tensorflowiOS/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ALvHeRrCkh66Utp4PyeLwLmy6u9jPR5qks5t5nvfgaJpZM4Uavhj.
I have iPhone 6.. do you know how much memory the faster rcnn network need? I'll check the other model you mention too Thanks
Hi @csharpseattle
I train SSD mobile net v1 with my dataset with the object detection API
on tensorflow 1.7.0 with 600x600 as input size.
I use object_detection/export_inference_graph.py to frezze the model
when I try to replace the model. I got an error: Failed to load model
log:
2018-06-07 12:43:08.061775+0300 tensorflowiOS[3030:597247] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-06-07 12:43:08.064279+0300 tensorflowiOS[3030:597247] [MC] Reading from public effective user settings.
2018-06-07 12:43:16.032525: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } }') for unknown op: PopulationCount
2018-06-07 12:43:16.038127: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "RightShift" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: RightShift
2018-06-07 12:43:16.038265: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LeftShift" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: LeftShift
2018-06-07 12:43:16.038418: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "BitwiseAnd" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: BitwiseAnd
2018-06-07 12:43:16.038582: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "BitwiseOr" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: BitwiseOr
2018-06-07 12:43:16.038730: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "BitwiseXor" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: BitwiseXor
2018-06-07 12:43:16.038899: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "Invert" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: Invert
2018-06-07 12:43:16.039767: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.042912: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.043079: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.043289: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.043866: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.044084: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableDenseHashTableV2
2018-06-07 12:43:16.044224: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.044479: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.044589: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.044696: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.045003: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.045140: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableDenseHashTable
2018-06-07 12:43:16.045250: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensors" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTableOfTensors
2018-06-07 12:43:16.045357: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensors" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableHashTableOfTensors
2018-06-07 12:43:16.045481: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensors" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: MutableHashTableOfTensors
2018-06-07 12:43:16.045731: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensors" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableHashTableOfTensors
2018-06-07 12:43:16.045962: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableImport" device_type: "CPU"') for unknown op: LookupTableImport
2018-06-07 12:43:16.046249: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableExportV2" device_type: "CPU"') for unknown op: LookupTableExportV2
2018-06-07 12:43:16.046436: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableSizeV2" device_type: "CPU"') for unknown op: LookupTableSizeV2
2018-06-07 12:43:16.046552: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableSize" device_type: "CPU"') for unknown op: LookupTableSize
2018-06-07 12:43:16.046648: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableImportV2" device_type: "CPU"') for unknown op: LookupTableImportV2
2018-06-07 12:43:16.046744: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableInsertV2" device_type: "CPU"') for unknown op: LookupTableInsertV2
2018-06-07 12:43:16.046877: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableFindV2" device_type: "CPU"') for unknown op: LookupTableFindV2
2018-06-07 12:43:16.047135: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "InitializeTableFromTextFileV2" device_type: "CPU"') for unknown op: InitializeTableFromTextFileV2
2018-06-07 12:43:16.047338: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "InitializeTableV2" device_type: "CPU"') for unknown op: InitializeTableV2
2018-06-07 12:43:16.047480: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "InitializeTable" device_type: "CPU"') for unknown op: InitializeTable
2018-06-07 12:43:16.049546: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTable
2018-06-07 12:43:16.049761: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableHashTable
2018-06-07 12:43:16.049911: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: MutableHashTable
2018-06-07 12:43:16.050150: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableHashTable
2018-06-07 12:43:16.050559: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTable
2018-06-07 12:43:16.050986: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableInsert" device_type: "CPU"') for unknown op: LookupTableInsert
2018-06-07 12:43:16.051190: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableExport" device_type: "CPU"') for unknown op: LookupTableExport
2018-06-07 12:43:16.051391: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensorsV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTableOfTensorsV2
2018-06-07 12:43:16.051502: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensorsV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableHashTableOfTensorsV2
2018-06-07 12:43:16.051690: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensorsV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: MutableHashTableOfTensorsV2
2018-06-07 12:43:16.051922: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableOfTensorsV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableHashTableOfTensorsV2
2018-06-07 12:43:16.053580: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: HashTable
2018-06-07 12:43:16.053739: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: HashTable
2018-06-07 12:43:16.053865: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT32 } } }') for unknown op: HashTable
2018-06-07 12:43:16.053972: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: HashTable
2018-06-07 12:43:16.054095: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: HashTable
2018-06-07 12:43:16.054200: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: HashTable
2018-06-07 12:43:16.054336: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: HashTable
2018-06-07 12:43:16.054568: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: HashTable
2018-06-07 12:43:16.054957: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: HashTable
2018-06-07 12:43:16.055086: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT32 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT32 } } }') for unknown op: HashTable
2018-06-07 12:43:16.055622: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.055818: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056121: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT32 } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056384: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056533: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056679: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056825: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.056972: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.057117: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.057262: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "HashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT32 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT32 } } }') for unknown op: HashTableV2
2018-06-07 12:43:16.058358: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTableV2
2018-06-07 12:43:16.058515: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_INT64 } } }') for unknown op: MutableHashTableV2
2018-06-07 12:43:16.058622: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_STRING } } }') for unknown op: MutableHashTableV2
2018-06-07 12:43:16.058812: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_STRING } } } constraint { name: "value_dtype" allowed_values { list { type: DT_BOOL } } }') for unknown op: MutableHashTableV2
2018-06-07 12:43:16.058917: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "MutableHashTableV2" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_FLOAT } } }') for unknown op: MutableHashTableV2
2018-06-07 12:43:16.059270: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "InitializeTableFromTextFile" device_type: "CPU"') for unknown op: InitializeTableFromTextFile
2018-06-07 12:43:16.059535: E tensorflow/core/framework/op_kernel.cc:1197] OpKernel ('op: "LookupTableFind" device_type: "CPU"') for unknown op: LookupTableFind
2018-06-07 12:43:17.402005: E /Users/mbenami/Documents/Yoobic/tensorflowiOS/swift/Tensorflow/TensorflowUtils.mm:99] Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'Add' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; T in [DT_FLOAT]
[[Node: MultipleGridAnchorGenerator/add_18 = Add[T=DT_INT32](MultipleGridAnchorGenerator/add_18/x, MultipleGridAnchorGenerator/strided_slice_2)]]
2018-06-07 12:43:17.475625+0300 tensorflowiOS[3030:597371] Failed to load model
2018-06-07 12:43:28.135069+0300 tensorflowiOS[3030:597247] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-06-07 12:43:28.136170+0300 tensorflowiOS[3030:597247] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
on iPhone 6 iOS 11.3.1
Build tensorflow iOS comand:
tensorflow/contrib/makefile/build_all_ios.sh -a arm64
without the 64 limitation i got Thread Pool error
by the way.. with tensorflow 1.5 it's working (not so real time but working )
I've seen that when I have built the iOS Tensorflow libs and forgotten to set __ANDROID_TYPES_FULL__. Though it is strange that 1.5 works. Using your own dataset shouldn't matter. I've done that many times. You might check out some of the other suggestions here: https://github.com/tensorflow/tensorflow/issues/4863
I stayed on r1.5 until r1.8 but I also had trouble building recently. I edited the Makefile and changed
-D__thread=thread_local
to
-D__thread= for the i386 arch only.
Another thing to try is to use the -g flag to build_all_ios.sh . This will use print_selective_registration_header to look at your .pb file and output a header file containing all the ops needed to build for your specific graph. This has the added benefit of decreasing the app's binary size.