gan
CDAN
¶
Bases: GAN
Wraps CDANHook.
Container | Required keys |
---|---|
models | ["G", "C", "D"] |
optimizers | ["G", "C", "D"] |
misc | ["feature_combiner"] |
Source code in pytorch_adapt\adapters\gan.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
DomainConfusion
¶
Bases: GAN
Wraps DomainConfusionHook.
Container | Required keys |
---|---|
models | ["G", "C", "D"] |
optimizers | ["G", "C", "D"] |
Source code in pytorch_adapt\adapters\gan.py
69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
GAN
¶
Bases: BaseGCDAdapter
Wraps GANHook.
Container | Required keys |
---|---|
models | ["G", "C", "D"] |
optimizers | ["G", "C", "D"] |
Source code in pytorch_adapt\adapters\gan.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
VADA
¶
Bases: GAN
Wraps VADAHook.
Container | Required keys |
---|---|
models | ["G", "C", "D"] |
optimizers | ["G", "C", "D"] |
misc | ["combined_model"] |
The "combined_model"
key does not need to be passed in.
It is simply torch.nn.Sequential(G, C)
, and is set
automatically during initialization.
Source code in pytorch_adapt\adapters\gan.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|