Skip to content

Instantly share code, notes, and snippets.

@J3698
Created March 22, 2021 18:07
Show Gist options
  • Save J3698/7bbe47d4e9269c3698e6d5893b293c05 to your computer and use it in GitHub Desktop.
Save J3698/7bbe47d4e9269c3698e6d5893b293c05 to your computer and use it in GitHub Desktop.
def main():
encoder = VGG19Encoder()
print(encoder)
encoder.freeze()
sample_input = torch.ones((1, 3, 256, 256))
sample_output = encoder(sample_input)
print(f"Input shapes: {sample_input.shape}")
print(f"Output shapes: {[i.shape for i in sample_output]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment