Skip to content

Conversation

@stachu86
Copy link

Refactoring of forward() method in Discriminator, to prevent last (unnecessary) downsampling.

    def forward(self, x):
        results = []
        for key, disc in self.model.items():
            results.append(disc(x))
            x = self.downsample(x) # <-- this is unnecessary in the last iteration of the loop
        return results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant