Last active
July 26, 2019 14:42
-
-
Save jamesonthecrow/0affbfd2b54263a93c631724d5e69481 to your computer and use it in GitHub Desktop.
Pet Segmentation on Android with Fritz (www.fritz.ai)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize the model included with the app | |
PetSegmentationOnDeviceModel onDeviceModel = new PetSegmentationOnDeviceModel(); | |
FritzVisionSegmentPredictorOptions options = new FritzVisionSegmentPredictorOptions.Builder() | |
.targetConfidenceThreshold(.4f) | |
.build(); | |
// Create the predictor with the Pet Segmentation model. | |
predictor = FritzVision.ImageSegmentation.getPredictor(onDeviceModel, options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment