Code Monkey home page Code Monkey logo

Comments (7)

cainxx avatar cainxx commented on June 15, 2024

It should be ok, I have not tested. ues coremltools https://github.com/apple/coremltools

from image-segmenter-ios.

DanielZanchi avatar DanielZanchi commented on June 15, 2024

I have the Model (from Apple website), but the file UIImage+segmentation.swift needs ti ne readapted to use that model, some things have changed.

https://docs-assets.developer.apple.com/coreml/models/Image/ImageSegmentation/DeepLabV3/DeepLabV3.mlmodel

from image-segmenter-ios.

ismaeIfm avatar ismaeIfm commented on June 15, 2024

I adapted the code to use custom deeplabv3 converted with tfcoreml. You can see https://github.com/ismaeIfm/image-segmenter-ios

from image-segmenter-ios.

l0stpenguin avatar l0stpenguin commented on June 15, 2024

@ismaelfm is ths v3 model fast enough to be used for real time purposes?

from image-segmenter-ios.

ismaeIfm avatar ismaeIfm commented on June 15, 2024

@mevinDhun I don't think so, I've tested it on an iPhone XS and it takes a couple of seconds to perform the segmentation on the test image, but I'm not sure if some settings need to be changed to use the neural engine. I think a proper benchmarking is needed to answer properly.

from image-segmenter-ios.

DanielZanchi avatar DanielZanchi commented on June 15, 2024

I adapted the code to use custom deeplabv3 converted with tfcoreml. You can see https://github.com/ismaeIfm/image-segmenter-ios

Why don't you use the one apple gives you instead of converting it?

https://docs-assets.developer.apple.com/coreml/models/Image/ImageSegmentation/DeepLabV3/DeepLabV3.mlmodel

from image-segmenter-ios.

ismaeIfm avatar ismaeIfm commented on June 15, 2024

Because the Apple coreml model is “compiled” from input to predictions and this code assumes the output of the model is an internal layer (ResizeBilinear), so in order to make it work the code would need some changes and I'm not a swift developer.

from image-segmenter-ios.

Related Issues (6)

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.