Skip to content

Upsample blocks should be added per powers of 2 instead of multiples of 2 #17

@MohabGhanim

Description

@MohabGhanim

Shouldn't the upsample blocks of the Generator in models.py be added per powers of 2? The current implementation adds them per multiples of 2, which will only work for upsample=2 and upsample=4.

For example, to move from an image of size 128 to an image of size 1024 you need upsample=8 and three upsample blocks: 256,512,1024. which is lg(8)

The current implementation creates four blocks: 256,512,1024,2048 which is 8/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions