Giter VIP home page Giter VIP logo

Comments (10)

hollance avatar hollance commented on May 29, 2024

Are there any error messages in the Xcode debug panel?

from yolo-coreml-mpsnngraph.

rainmancao avatar rainmancao commented on May 29, 2024

Hollance, no, there is no error message in the Xcode debug panel. I was thinking the preprocessing step might be an issue. For example the RGB channel order, the pixel value normalization. Can you share any insight that I need to pay more attention to when converting the model?

Thank you very much

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 29, 2024

If my model also doesn't work on your iPhone 6 then it sounds like an issue in CoreML, since the model works fine on the iPad Pro.

Does the MPSNNGraph version work on your iPhone?

One thing to try is to pass the usesCPUOnly option (it might be spelled differently) to CoreML when it is making the prediction.

Also, just to make sure: are you sure your input image actually contains any objects for the model to recognize?

from yolo-coreml-mpsnngraph.

rainmancao avatar rainmancao commented on May 29, 2024

Hi, hollance,

I haven't tried MPSNNGraph version. I do test scene with objects covered, for example, cars, bikes, human, etc.

My xcode is xcode 9 beta 5, but I assume beta 4 or beta 5 will not be an issue. I will try enable the usesCPUOnly option and will update my results

from yolo-coreml-mpsnngraph.

oishi89 avatar oishi89 commented on May 29, 2024

I got the same issue and I checked the keras model after converting then the model was not working at this point. No bounding-box until you change the confident score threshold = 0.001xxx. Could you check your model ?

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 29, 2024

@oishi89 Where/how have you checked that the model isn't working?

I have no iPhone 6 to test this on but the code works fine on the 6s, 7, and iPad Pro.

If the model does not work in Keras, then perhaps the inputs you're giving it are in the wrong format.

from yolo-coreml-mpsnngraph.

oishi89 avatar oishi89 commented on May 29, 2024

The input is trained model with my own data using tiny-yolo-voc.cfg. I tested for making sure it works properly before conversion to Keras. I ran the yad2k.py with output is a file.h5 at this point I also ran the test_yolo.py then no object was detected. Do you have any idea please help

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 29, 2024

It's probably something in yad2k.py then. Note that I modified yad2k.py to make it work with Keras 1.2, since at the time coremltools did not support Keras 2 yet. You might have better luck with the official version of YAD2K.

from yolo-coreml-mpsnngraph.

oishi89 avatar oishi89 commented on May 29, 2024

I have tried the official version already and both have the same result. I'm very new with Python and Machine learning. If you have time please review the yad2k.py

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 29, 2024

Unfortunately I don't have the time to debug your model for free. But my services are for hire if you're willing to pay my hourly rate: http://machinethink.net/hire/

from yolo-coreml-mpsnngraph.

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.