This file contains 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
// Fetch the StyleGAN model data from Hub | |
var modelData = await MLModelData.FromHub("@natsuite/style-gan"); | |
// Create the model // This is actually being created server-side | |
var model = modelData.Deserialize(); | |
// Create the StyleGAN Hub predictor | |
var predictor = new StyleGANHubPredictor(model); | |
// Run style transfer in the cloud using NatML Hub | |
Texture2D content = ..., style = ...; | |
Texture2D result = await predictor.Predict(content, style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment