-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Perceptual Similarity as a loss function for a Neural Network #52
Comments
I didn't understand the 2nd half of the sentence. The 1st half should be doable. |
I was taking the reference of this issue: keras-team/keras#10529 I had modified the test script to work for images, but am unsure how it would fit into a neural network |
Simply call the forward function, whenever you need the loss computed |
Hi Mr. Zhang,
I am using images of dimensions 224 x 224 x 3, and a batchSize of 8. The following is the custom loss function I am using for my code:
Kindly let me know what the issue is |
Make sure the images are in |
I am trying to replace the standard loss functions like MSE in my autoencoder network, with the Perceptual Similarity Metric. I wanted to know whether this would be possible, since instances of the network and specific formatting might be required for the same.
The text was updated successfully, but these errors were encountered: