-
-
Save mdfarragher/c58c8338515308a3bee8347bcedb8569 to your computer and use it in GitHub Desktop.
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
// create a batch to evaluate the model on | |
var evaluationBatch = StyleTransfer.CreateBatch(model, labels); | |
// infer the image from the model | |
Console.WriteLine("Inferring transformed image..."); | |
var img = model.InferImage(evaluationBatch); | |
// show image | |
var mat = new Mat(imageHeight, imageWidth, OpenCvSharp.MatType.CV_8UC3, img, 3 * imageWidth); | |
Cv2.ImShow("Image With Style Transfer", mat); | |
Cv2.WaitKey(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment