-
Notifications
You must be signed in to change notification settings - Fork 37
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
no attribute PerceptualLoss #4
Comments
Are you by any chance using an older version of LPIPS. The following excerpt from LPIPS introduction points there are two versions: "If you use LPIPS in your publication, please specify which version you are using. The current version is 0.1. You can set version='0.0' for the initial release." |
Never mind about this issue. I was able to get rid of this by importing models and replacing ps with models when initializing the loss network. Specifically, following two lines should address this if anyone else gets the same error: 'from PerceptualSimilarity import models' |
Hi Ahmad, Saving summary into directory runs/save_model/0/ Have u experienced this before? |
@hcleung3325 I remember solving this by using torch==1.1.0 |
Sorry, I can't find "from PerceptualSimilarity import models".Where is the "models"? Can you share the code ? |
You can download the PerceptualSimilarity package. |
Thanks for your reply. My email is 896385980@qq.com. Please! |
The downloaded perceptualsimilarity works, but still reports an error: |
Hi Manuel, I was trying to following your example to train dsgan but I am encountering the following error:
"module 'PerceptualSimilarity' has no attribute 'PerceptualLoss'"
when it tries to initialize the PerceptualLoss in loss.py. I have downloaded the PerceptualSimilarity and placed it in the directory 'real-world-sr/dsgan/'. I was able to successfully run the examples provided with the PerceptualSimilarity author. Can you please advise?
Thanks,
Touqeer
The text was updated successfully, but these errors were encountered: