Skip to content

Instantly share code, notes, and snippets.

@jamesonthecrow
Last active July 26, 2019 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesonthecrow/0affbfd2b54263a93c631724d5e69481 to your computer and use it in GitHub Desktop.
Save jamesonthecrow/0affbfd2b54263a93c631724d5e69481 to your computer and use it in GitHub Desktop.
Pet Segmentation on Android with Fritz (www.fritz.ai)
// 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