Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Mar 17, 2021

Conversation

tucan9389
Copy link
Owner

@tucan9389 tucan9389 commented Mar 12, 2021

face-parsing model
faceparsing-demo-001

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

PR Points

  • Support the face-parsing semantic segmentation model
  • Support to visualize multi-class semantic segmentation output
    • Add MultitargetSegmentationTextureGenerater.swift
    • Add new multitarget_segmentation_render_target shader function in Shaders.metal

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 tucan9389 requested a review from syjdev March 12, 2021 17:05
@tucan9389 tucan9389 self-assigned this Mar 12, 2021
@tucan9389
Copy link
Owner Author

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

@tucan9389 tucan9389 merged commit c8a41ba into master Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant