clean-fid icon indicating copy to clipboard operation
clean-fid copied to clipboard

Cannot compute fid for a generator, using images in fdir2.

Open visittor opened this issue 2 years ago • 1 comments

This code is from fid.py line 459-470.

elif gen is not None:
    if not verbose:
        print(f"compute FID of a model with {dataset_name}-{dataset_res} statistics")
    score = fid_model(gen, dataset_name, dataset_res, dataset_split,
            model=feat_model, z_dim=z_dim, num_gen=num_gen,
            mode=mode, num_workers=num_workers, batch_size=batch_size,
            device=device, verbose=verbose)
    return score

# compute fid for a generator, using images in fdir2
elif gen is not None and fdir2 is not None:

There is no way we enter the last elif, so I can't compare my generator with images in fdir2. Is this intentional?

visittor avatar Jul 03 '22 03:07 visittor

Hi,

Thank you for pointing this out! I have addressed in the new release of the library.

Regards, Gaurav

GaParmar avatar Jul 15 '22 00:07 GaParmar