Skip to content

Pretrained model does not match the model definition #1

Open
@nisha1729

Description

@nisha1729

The pre-trained model weights could not be loaded to the current model definition. I changed the model to

self.encoder = nn.Sequential(
            nn.Conv2d(3, 32, 4, stride=2, padding=1),            # [batch, 12, 16, 16]
            nn.ReLU(),
            nn.Conv2d(32, 48, 3, stride=2, padding=1),           # [batch, 24, 8, 8]
            nn.ReLU(),
        )
        self.decoder = nn.Sequential(
		    nn.ConvTranspose2d(48, 32, 3, stride=2, padding=1),  # [batch, 24, 8, 8]
            nn.ReLU(),
			nn.ConvTranspose2d(32, 3, 4, stride=2, padding=1),   # [batch, 12, 16, 16]
            nn.ReLU(),
        )

Now the code works, but the reconstruction is quite bad.
image

Do you have a different pre-trained model that can be used? Thanks!

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