tucan9389 / SemanticSegmentation-CoreML

The example project of inferencing Semantic Segementation using Core ML
https://github.com/motlabs/awesome-ml-demos-with-ios
MIT License
320 stars 32 forks source link

[PR] Support face-parsing semantic segmentation model #14

Closed tucan9389 closed 3 years ago

tucan9389 commented 3 years ago
face-parsing model
faceparsing-demo-001

video source: https://www.youtube.com/watch?v=D571qZzLfX4

PR Points

Model Info

Related Issues

How to run the FaceParsing model?

  1. Download the mlmodel from here
  2. Import the FaceParsing.mlmodel into SemanticSegmentation-CoreML>mlmodel folder of the project
  3. Change the minimum iOS version to 14.0+
  4. Change the model class from DeepLabV3() to FaceParsing() in LiveImageViewController.swift or LiveMetalCameraViewController.swift
  5. Build & run the project on the real device
tucan9389 commented 3 years ago

@jsharp83 Could you review my pull request for Metal codes?