Giter VIP home page Giter VIP logo

Comments (10)

periscopiojoe avatar periscopiojoe commented on May 18, 2024

I have found a similiar issue from you https://stackoverflow.com/questions/44529869/converting-uiimage-to-mlmultiarray-for-keras-model/44538525#44538525
On the other hand, my output is now "Multiarray (double 4x1917x1)" because input data is in a wrong type, and yours is "Multiarray (double)",so do I need to convert the output data or will it be solved just fixing the input data ?

from coremlhelpers.

periscopiojoe avatar periscopiojoe commented on May 18, 2024

I have already tried input conversion but output still is wrong :(

from coremlhelpers.

hollance avatar hollance commented on May 18, 2024

This happens because Core ML does not understand that it has to interpret your input as an image. You need to tell coremltools that your input should be treated as an image.

from coremlhelpers.

periscopiojoe avatar periscopiojoe commented on May 18, 2024

Thanks,
And how can I do this? while conversion from TF to Core Ml? could you show me a sample, please?
Thanks

from coremlhelpers.

periscopiojoe avatar periscopiojoe commented on May 18, 2024

Is it the same that you explained here? https://stackoverflow.com/questions/48773397/keras-image-classifier-for-coreml-image-input-asks-multiarray-instead-of-image

from coremlhelpers.

hollance avatar hollance commented on May 18, 2024

I haven't used the TF converter, so no idea how to do it there.

from coremlhelpers.

periscopiojoe avatar periscopiojoe commented on May 18, 2024

I mean CoreML tools from keras-python, sorry

from coremlhelpers.

periscopiojoe avatar periscopiojoe commented on May 18, 2024

I read this from you "When converting your model to Core ML you also need to add input_names='camera frame' when you call coremltools.converters.keras.convert(), in addition to image_input_names='camera frame'. Otherwise coremltools won't see this input and doesn't know you want to treat it as an image."

from coremlhelpers.

hollance avatar hollance commented on May 18, 2024

Yes that is correct.

from coremlhelpers.

r4ghu avatar r4ghu commented on May 18, 2024

@periscopiojoe If you are still facing this issue, the tf-coreml converter has image_input_name variable to be set for telling the converter that input is an image. For more infor, check this example notebook: https://github.com/tf-coreml/tf-coreml/blob/master/examples/style_transfer_example.ipynb

from coremlhelpers.

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.