This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A pytorch implementation of the SPatchGAN discriminator, tested with pytorch 1.7.1. | |
# This file is released under the BSD 3-Clause license, see https://github.com/NetEase-GameAI/SPatchGAN/blob/main/LICENSE | |
# Author: shaoxuning@corp.netease.com | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from torch.nn.utils import spectral_norm | |
class SPatchDiscriminator(nn.Module): |