DSAN代码:Deep Subdomain Adaptation Network forImage Classification
DSAN.pyimporttorchimporttorch.nnasnnimportResNetimportlmmdclassDSAN(nn.Module):def__init__(self,num_classes=31,bottle_neck=True):super(DSAN,self).__init__()self.feature_layers=ResNet.resnet50(True)sel