Created
November 26, 2019 06:13
-
-
Save Lavanyagaur22/16fad3ef0350e795ff054ebb3af9c0f5 to your computer and use it in GitHub Desktop.
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
var predictor: FritzVisionStylePredictor? = null | |
val managedModel = PaintingManagedModels.BICENTENNIAL_PRINT_MANAGED_MODEL | |
/* Load the FritzVision Style Transfer Predictor | |
*/ | |
FritzVision.StyleTransfer.loadPredictor( | |
managedModel, object : PredictorStatusListener<FritzVisionStylePredictor> { | |
override fun onPredictorReady(stylePredictor: FritzVisionStylePredictor?) { | |
Log.d(TAG, "Style Transfer predictor is ready") | |
predictor = stylePredictor | |
} | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment