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

More about SIFID score #35

Closed
iMiffy opened this issue Nov 20, 2019 · 5 comments
Closed

More about SIFID score #35

iMiffy opened this issue Nov 20, 2019 · 5 comments

Comments

@iMiffy
Copy link

iMiffy commented Nov 20, 2019

Your GAN paper is potentially very useful. I am trying to train a model on learning an image, then find the SIFID score between the image and other test image. Both training and test images are of the same resolution ie. 128 X 128. I would like to pose a question:

In the README:
python SIFID/sifid_score.py --path2real --path2fake --images_suffix <e.g. jpg, png>

Is the path2real and path2fake the directory that contain the image for comparison? I have issue with running sifid_score.py.

@tamarott
Copy link
Owner

tamarott commented Nov 20, 2019 via email

@iMiffy
Copy link
Author

iMiffy commented Nov 21, 2019

100%|█████████████████████████████████████████████| 1/1 [00:00<00:00, 27.66it/s]
100%|█████████████████████████████████████████████| 1/1 [00:00<00:00, 42.17it/s]
Traceback (most recent call last):
File "SIFID/sifid_score.py", line 258, in
sifid_values = calculate_sifid_given_paths(path1,path2,1,args.gpu!='',64,suffix)
File "SIFID/sifid_score.py", line 240, in calculate_sifid_given_paths
m1, s1 = calculate_activation_statistics([files1[i]], model, batch_size, dims, cuda)
IndexError: list index out of range

@iMiffy
Copy link
Author

iMiffy commented Nov 21, 2019

How should I name the real and test images?

@tamarott
Copy link
Owner

tamarott commented Nov 21, 2019

Each fake images name should be identical to its corresponding real image file name.

Looks like your problem is that the paths you provided are empty, and "files1" doesn't contain any file to read. Also, make sure the suffix argument is set according to the correct file types. The default is jpg files.

@iMiffy
Copy link
Author

iMiffy commented Nov 21, 2019

Okay, problem solved. Turns out that I made a silly mistake when modifying the code. Thanks.

@iMiffy iMiffy closed this as completed Nov 22, 2019
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