Pix2PixLossSemantic¶
Inheritance Diagram

-
class
ashpy.losses.gan.Pix2PixLossSemantic(cross_entropy_weight=100.0, adversarial_loss_weight=1.0, feature_matching_weight=10.0, adversarial_loss_type=<AdversarialLossType.GAN: 1>, use_feature_matching_loss=False)[source]¶ Bases:
ashpy.losses.executor.SumExecutorSemantic Pix2Pix Loss.
Weighted sum of
ashpy.losses.gan.CategoricalCrossEntropy,ashpy.losses.gan.AdversarialLossGandashpy.losses.gan.FeatureMatchingLoss.Methods
__init__([cross_entropy_weight, …])Initialize the Executor. Attributes
executorsReturn the List of Executors. fnReturn the Keras loss function to execute. global_batch_sizeGlobal batch size comprises the batch size for each cpu. weightReturn the loss weight. -
__init__(cross_entropy_weight=100.0, adversarial_loss_weight=1.0, feature_matching_weight=10.0, adversarial_loss_type=<AdversarialLossType.GAN: 1>, use_feature_matching_loss=False)[source]¶ Initialize the Executor.
Weighted sum of
ashpy.losses.gan.CategoricalCrossEntropy,ashpy.losses.gan.AdversarialLossGandashpy.losses.gan.FeatureMatchingLossParameters: - cross_entropy_weight (
ashpy.ashtypes.TWeight) – Weight of the categorical cross entropy loss. - adversarial_loss_weight (
ashpy.ashtypes.TWeight) – Weight of the adversarial loss. - feature_matching_weight (
ashpy.ashtypes.TWeight) – Weight of the feature matching loss. - adversarial_loss_type (
ashpy.losses.gan.AdversarialLossType) – type of adversarial loss, seeashpy.losses.gan.AdversarialLossType - use_feature_matching_loss (bool) – whether to use feature matching loss or not
- cross_entropy_weight (
-