Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using faster rcnn model #8

Open
mbenami opened this issue Jun 5, 2018 · 5 comments
Open

using faster rcnn model #8

mbenami opened this issue Jun 5, 2018 · 5 comments

Comments

@mbenami
Copy link

mbenami commented Jun 5, 2018

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!

@csharpseattle
Copy link
Owner

csharpseattle commented Jun 6, 2018 via email

@mbenami
Copy link
Author

mbenami commented Jun 6, 2018

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

@mbenami
Copy link
Author

mbenami commented Jun 7, 2018

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 )

@csharpseattle
Copy link
Owner

csharpseattle commented Jun 7, 2018

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: tensorflow/tensorflow#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.

@csharpseattle
Copy link
Owner

csharpseattle commented Jun 8, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants