Cycle generative adverserial network from the paper:

Details

https://arxiv.org/pdf/1703.10593

and ported from the Keras (python) implementation:

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

Arguments

inputImageSize

latentDimension

Details

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

Author

Tustison NJ

Examples

library( keras ) library( ANTsRNet ) keras::backend()$clear_session()
#> Error in py_discover_config(required_module, use_environment): Python specified in RETICULATE_PYTHON (/Users/ntustison/anaconda3/envs/antsx/bin/python3) does not exist
ganModel <- CycleGanModel$new( inputImageSize = c( 128, 128, 3 ) )
#> Error in py_discover_config(required_module, use_environment): Python specified in RETICULATE_PYTHON (/Users/ntustison/anaconda3/envs/antsx/bin/python3) does not exist
ganModel$buildGenerator()
#> Error in eval(expr, envir, enclos): object 'ganModel' not found