Skip to content
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

Installation on Ubuntu 19.04 #33

Closed
kaanaksit opened this issue Sep 8, 2019 · 1 comment
Closed

Installation on Ubuntu 19.04 #33

kaanaksit opened this issue Sep 8, 2019 · 1 comment

Comments

@kaanaksit
Copy link

Thank you for such a well setup! I managed to run the code with a tiny modification on an Ubuntu 19.04. I commented those two lines in your requirements.txt:

#numpy>=1.14.3
#opencv>=2.4.11

Later, I installed the numpy and the opencv from Ubuntu's own repositories:

sudo apt-get install python-numpy python-opencv

Lastly, I verified by running comparison of two sample images as in below:

XXXXX:PerceptualSimilarity$ python compute_dists.py -p0 imgs/ex_ref.png -p1 imgs/ex_p0.png --use_gpu
Setting up Perceptual loss...
Loading model from: /home/XXXXX/PerceptualSimilarity/models/weights/v0.1/alex.pth
...[net-lin [alex]] initialized
...Done
Distance: 0.722

@richzhang
Copy link
Owner

Thanks for the information!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants