Created
January 8, 2019 21:57
-
-
Save LiamHz/1fce8de88c369345ad5cb80c80c7566a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calculate the average squared error between two high-level layer activations | |
content_loss = torch.mean((target_features['conv4_2'] - content_features['conv4_2'])**2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment