Skip to content

cdan

CDANHook

Bases: GANHook

Implementation of Conditional Adversarial Domain Adaptation

Source code in pytorch_adapt\hooks\cdan.py
77
78
79
80
81
82
83
84
85
86
87
88
class CDANHook(GANHook):
    """
    Implementation of
    [Conditional Adversarial Domain Adaptation](https://arxiv.org/abs/1705.10667)
    """

    def __init__(self, softmax=True, **kwargs):
        super().__init__(
            disc_hook=CDANDomainHookD(softmax=softmax),
            gen_hook=CDANDomainHookG(softmax=softmax),
            **kwargs
        )