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

allpairs script doesn't do all pairs #95

Closed
ChameleonScales opened this issue Mar 6, 2022 · 1 comment
Closed

allpairs script doesn't do all pairs #95

ChameleonScales opened this issue Mar 6, 2022 · 1 comment

Comments

@ChameleonScales
Copy link

ChameleonScales commented Mar 6, 2022

Hi, I just downloaded the master branch. The readme shows this command to calculate all pairs in the imgs directory :
python lpips_1dir_allpairs.py -d imgs/ex_dir_pair -o imgs/example_dists_pair.txt --use_gpu

I just precised python3 because 2 is the default on my system and removed --use-gpu because I have an AMD one :
python3 lpips_1dir_allpairs.py -d imgs/ex_dir_pair -o imgs/example_dists_pair.txt

The resulting file only contained 2 pairs instead of 3:

(ex_ref.png,ex_p0.png): 0.721881
(ex_p0.png,ex_p1.png): 0.719658
Avg: 0.720769 +/- 0.000786
@ChameleonScales
Copy link
Author

Sorry I didn't notice there is an --all-pairs argument. Problem solved. Although, why would it do only those 2 by default? It seems counter-intuitive to me.

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

1 participant