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?
This code is from fid.py line 459-470.
There is no way we enter the last elif, so I can't compare my generator with images in fdir2. Is this intentional?