SuperResolutionGanModel | R Documentation |
Super resolution generative adverserial network from the paper:
https://arxiv.org/abs/1609.04802
and ported from the Keras (python) implementation:
https://github.com/eriklindernoren/Keras-GAN/blob/master/srgan/srgan.py
$initialize
instantiates a new class and builds the
generator and discriminator.
$buildGenerator
build generator.
$buildGenerator
build discriminator.
Tustison NJ
## Not run:
library( keras )
library( ANTsRNet )
keras::backend()$clear_session()
ganModel <- SuperResolutionGanModel$new(
lowResolutionImageSize = c( 112, 112, 3 ) )
testthat::expect_error({
ganModel <- SuperResolutionGanModel$new(
lowResolutionImageSize = c( 64, 65, 3 ) )
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.