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 deeplab on ios application #2

Open
hakS07 opened this issue Jul 8, 2019 · 2 comments
Open

using deeplab on ios application #2

hakS07 opened this issue Jul 8, 2019 · 2 comments

Comments

@hakS07
Copy link

hakS07 commented Jul 8, 2019

@nolanliou
Hi, I have trained deeplab on my custom dataset(200*150) with 224 as crop size and during the test, it detects for crop with crop size 224 .
now what I need is to integrate my model on ios application, i was able to successfully convert the model to tflite .but it doesn't detect anything i don't get it whats the problem
because when i tried to convert a deeplab pretrained mobilenet that you have mentioned it works for me on mobile and for my model no ,however, i have tested my model (.pb model)with python code and it detects
did you have any idea??

@nolanliou
Copy link
Owner

  1. convert to tflite model all right?
  2. make sure pre-process and post-processing codes are right.

@hakS07
Copy link
Author

hakS07 commented Jul 11, 2019

@nolanliou
1)converting to tflite format :
tflite_convert ----output_format=TFLITE --inference_type=FLOAT --inference_input_type=FLOAT --input_arrays=sub_2 --input_shapes=1,224,224,3 --output_arrays=ResizeBilinear_2 --output_file=/Users/Karizma/Downloads/deeplabv3_mnv2_pascal_trainvall/frozen-224.tflite --graph_def=/Users/Karizma/Downloads/deeplabv3_mnv2_pascal_trainvall/frozen-224.pb --mean_values=128 --std_dev_values=127 --allow_custom_ops --post_training_quantize
60801396-ced43900-a16e-11e9-8a6d-e9374beea91a
60801386-c8de5800-a16e-11e9-9a5f-ca319de7b0ee
2) pre-process and post-processing codes: i referred to this projet
https://github.com/toniz/deeplab-on-ios
excuse my ignorance, i'm new with ios stuff
what i don't get it that
1/the same swift code works with another model like https://storage.googleapis.com/download.tensorflow.org/models/tflite/gpu/deeplabv3_257_mv_gpu.tflite
but when i put my model it doesn't work
2/my model detects fine on inference python code

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