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

About running scripts & folder structure #1

Open
mountains-high opened this issue Jun 15, 2022 · 0 comments
Open

About running scripts & folder structure #1

mountains-high opened this issue Jun 15, 2022 · 0 comments

Comments

@mountains-high
Copy link

Hello Mr. @kvpratama,

Thank you for your nice work and for making it open-source.
Could you guide me on which kind of changes I am supposed to do if my folder structure is like this:

real/
        class0/
                   234.png
                   001.png
                   etc. 
        class1/
                   532.png

The generated folder image structure is the same.

Currently, I'm facing with this issue:

File "fid_score.py", line 231, in <module>
    fid_value = calculate_fid_given_paths(args.path, args.batch_size, args.gpu != '', args.dims)
  File "fid_score.py", line 179, in calculate_fid_given_paths
    m1, s1 = _compute_statistics_of_path(paths[0], model, batch_size, dims, cuda)
  File "fid_score.py", line 163, in _compute_statistics_of_path
    m, s = calculate_activation_statistics(files, model, batch_size, dims, cuda)
  File "fid_score.py", line 149, in calculate_activation_statistics
    act = get_activations(files, model, batch_size, dims, cuda)
  File "fid_score.py", line 54, in get_activations
    for i in tqdm(range(0, len(files), batch_size)):
ValueError: range() arg 3 must not be zero

Thank you

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