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

nan problem of SIFID #113

Closed
SeibertronSS opened this issue Aug 11, 2020 · 3 comments
Closed

nan problem of SIFID #113

SeibertronSS opened this issue Aug 11, 2020 · 3 comments

Comments

@SeibertronSS
Copy link

Dear author, I have encountered difficulties in calculating SIFID. Every time my colleague and I run SIFID, the program will throw a nan error. The test images are jpg format.

SIFID: nan

@tamarott
Copy link
Owner

Are you sure the path to the images is correct, and that in both paths images have the same names?
The code is working fine on my side, however if i do not set one of these correctly I get:
SIFID: nan

@huanhuan414
Copy link

“python SIFID/sifid_score.py --path2real Downloads/user_study/real/ --path2fake Downloads/user_study/fake_high_variance/” The command is like this

@Sandeep-GitHubAccount
Copy link

Inside sifid_score.py file

Replace below lines
files1 = list(path1.glob('.%s' %suffix))
files2 = list(path2.glob('
.%s' %suffix))

by
files1 = list(path1.glob('.png')) or files1 = list(path1.glob('.jpg'))
files2 = list(path2.glob('.png')) or files2 = list(path2.glob('.png'))

The above solves my problem

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

4 participants