Coder Social home page Coder Social logo

sacmehta / espnetv2-coreml Goto Github PK

View Code? Open in Web Editor NEW
73.0 4.0 12.0 9.1 MB

Semantic segmentation on iPhone using ESPNetv2

License: Other

Swift 100.00%
espnetv2 convolutional-neural-networks semantic-segmentation iphone iphone-app coreml machine-learning artificial-intelligence real-time

espnetv2-coreml's Introduction

Real-time semantic segmentation using ESPNetv2 on iPhone

This repository provides a real-time demo of ESPNetv2 on iPhone (tested only on iPhone7). Below are some illustrations.

Real-time semantic segmentation using ESPNetv2 on iPhone7
Seg demo on iPhone7 Seg demo on iPhone7

Model details

The COREML ESPNetv2 model takes an RGB image of size 256x256 as an input and produces an output of size 256x256 in real-tim. The model learns about 0.79 million parameters and performs roughly 337 million FLOPs to generate the segmentation mask. The model is trained using PyTorch on the PASCAL VOC 2012 dataset and achieves a segmentation score of 63.36, which is measured in terms of mean interesection over union (mIOU).

Several pre-trained models are provided in our EdgeNets repository.

Contributions

If you are familiar with iOS application development and wants to improve the design or contribute in some way, please do so by creating a pull request. We welcome contributions.

License

The code and models are released under the same license as EdgeNets.

Acknowledgement

Many thanks to Srini and Hanna for their support and help as always.

espnetv2-coreml's People

Contributors

rikdz avatar sacmehta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

espnetv2-coreml's Issues

inference real time?

I run the demo on iphone 6s, I counted the inferencing time of the model, it was about 120ms, Is this time correct?
let startTime = CFAbsoluteTimeGetCurrent()

try imageRequestHandler.perform(self.requests)

let endTime = CFAbsoluteTimeGetCurrent()
debugPrint("inference time:%f ms", (endTime - startTime)*1000)

Hello, request for previous version of the app.

Hello, I see that in the readme file there is a demo previewed in illustrations. It is a little different than the repository inside. Do you have a version when recognized mask is covered above the image like it is on your illustrations?;)

I would like to see your example as it presented in read me;) Could you share that version of repo with me?

Thank you very much.

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.