knitr::opts_chunk$set(echo = TRUE)
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools") devtools::install_github("David-J-R/neuralstyleR", build_vignettes=TRUE)
library(neuralstyleR) data("contentImg") data("styleImg")
network<-prepareNetwork() network$net
t_cont<-addContentToNetwork(network = network, contentImg = contentImg)
addStylesToNetwork(network = network, styleImgs = list(styleImg))
img <- runNeuralStyleR(network, t_cont)
Here is the output of sessionInfo() on the system on which this document
was compiled running pandoc r rmarkdown::pandoc_version():
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.