Skip to content

Removing the last unnecessary downsampling in Discriminator#40

Open
stachu86 wants to merge 1 commit into
descriptinc:masterfrom
stachu86:remove-unnecessary-downsampling
Open

Removing the last unnecessary downsampling in Discriminator#40
stachu86 wants to merge 1 commit into
descriptinc:masterfrom
stachu86:remove-unnecessary-downsampling

Conversation

@stachu86

Copy link
Copy Markdown

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