Skip to content

Instantly share code, notes, and snippets.

@J3698
Created March 22, 2021 20:49
Show Gist options
  • Save J3698/4845c1a79d84f437e514e72bea4a98b4 to your computer and use it in GitHub Desktop.
Save J3698/4845c1a79d84f437e514e72bea4a98b4 to your computer and use it in GitHub Desktop.
def main():
encoder = VGG19Encoder()
decoder = Decoder()
print(decoder)
sample_input = torch.ones((1, 3, 256, 256))
outputs = encoder(sample_input)
output = decoder(outputs[-1])
print(f"Input shape: {sample_input.shape}")
print(f"Intermediate shapes: {[output.shape for output in outputs]}")
print(f"Output shape: {output.shape}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment