Code Monkey home page Code Monkey logo

Comments (9)

madhavajay avatar madhavajay commented on May 25, 2024 4

Just so people know, there is a partial port made here:
https://github.com/vonholst/SSDMobileNet_CoreML

The end of the network output has been re-implemented in swift code.

from forge.

madhavajay avatar madhavajay commented on May 25, 2024 1

There is an example project using TensorFlow 1.4.0 that runs the following models:
ssd_mobilenet_v1_coco, ssd_inception_v2_coco, faster_rcnn_resnet101_coco

https://github.com/JieHe96/iOS_Tensorflow_ObjectDetection_Example

There are some issues currently, I needed to recompile the protbuff headers with protoc version 3.4.0.

Get the correct 3.4.0 binary for your system here:
https://github.com/google/protobuf/releases

Get the original .proto definition file here:
https://github.com/tensorflow/models/blob/master/research/object_detection/protos/string_int_label_map.proto

Then run something like:
./protoc --cpp_out=./ ./string_int_label_map.proto

Make sure to use the protoc binary for 3.4.0 that you downloaded above. Then replace the files in the ex_SSD_Mobilenet_TF folder:
string_int_label_map.pb.cc
string_int_label_map.pb.h

I haven't yet hooked this up to video input yet but I will be trying shortly and I might commit and push some changes to the repo.

from forge.

oishi89 avatar oishi89 commented on May 25, 2024 1

@madhavajay Recommend trying https://github.com/tf-coreml/tf-coreml instead of. It's support using GPU on ios device so the performance would be better than.

from forge.

oishi89 avatar oishi89 commented on May 25, 2024 1

@madhavajay cool I have not had oppotinity to check it out yet. If you did tried it please highlight something
Thanks 👍

from forge.

hollance avatar hollance commented on May 25, 2024

I don't know if CoreML supports it. It looks your model was made using a custom version of Caffe, while coremltools only supports the original version of Caffe.

I've implemented (the TensorFlow version of) MobileNet+SSD in Metal for a client and that works fine, but it did require a few custom Metal kernels.

from forge.

oishi89 avatar oishi89 commented on May 25, 2024

So is it possible to convert my model to metal ?

from forge.

hollance avatar hollance commented on May 25, 2024

Yes, that should be possible but it might involve writing custom compute kernels.

from forge.

madhavajay avatar madhavajay commented on May 25, 2024

Yes, I just saw that and will give it a try but wanted to provide a working solution (even if its slow) that I found in case someone else finds it useful. Seems there are few and far between solutions for a lot of this stuff at the moment.

Should we all be looking at NASnet now though?
https://research.googleblog.com/2017/11/automl-for-large-scale-image.html
https://github.com/tensorflow/models/tree/master/research/slim

Anyone got a working implementation for mobile?

from forge.

madhavajay avatar madhavajay commented on May 25, 2024

Yes, it works straight from the master branch on load in xcode, just change your Developer team. 👍

from forge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.