SuperResolutionGanModel: Super resolution GAN model

SuperResolutionGanModelR Documentation

Super resolution GAN model

Description

Super resolution generative adverserial network from the paper:

Details

https://arxiv.org/abs/1609.04802

and ported from the Keras (python) implementation:

https://github.com/eriklindernoren/Keras-GAN/blob/master/srgan/srgan.py

Arguments

lowResolutionImageSize
numberOfResidualBlocks

Details

$initialize instantiates a new class and builds the generator and discriminator. $buildGeneratorbuild generator. $buildGeneratorbuild discriminator.

Author(s)

Tustison NJ

Examples

## 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)


ANTsX/ANTsRNet documentation built on April 28, 2024, 12:16 p.m.