unitGenerator
R2026bCreate unsupervised image-to-image translation (UNIT) generator network
Description
creates a UNIT generator network, net = unitGenerator(inputSizeSource)net, for input of size
inputSizeSource. For more information about the network architecture,
see UNIT Generator Network. The network has two inputs and
four outputs:
The two network inputs are images in the source and target domains. By default, the target image size is same as source image size. You can change the number of channels in the target image by specifying the
NumTargetInputChannelsname-value argument.Two of the network outputs are self-reconstructed outputs, in other words, source-to-source and target-to-target translated images. The other two network outputs are the source-to-target and target-to-source translated images.
modifies aspects of the UNIT generator network using name-value arguments.net = unitGenerator(inputSizeSource,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Tips
You can create the discriminator network for UNIT by using the
patchGANDiscriminatorfunction.Train the UNIT GAN network using a custom training loop.
To perform domain translation of source image to target image and vice versa, use the
unitPredictfunction.For shared latent feature encoding, the arguments
NumSharedBlocksandNumResidualBlocksmust be greater than 0.
References
[1]
Version History
Introduced in R2021a







