Skip to content

Commit

Permalink
feat: 🔧 add assertion information to fid
Browse files Browse the repository at this point in the history
  • Loading branch information
chaofengc committed Oct 20, 2023
1 parent 51a6fba commit c36d31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiqa/archs/fid_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def forward(self,

# compute fid of a folder
elif fdir1 is not None and fdir2 is None:
assert dataset_name is not None, "The reference dataset_name should be specified to calcualte fid score."
assert dataset_name is not None, "When fdir2 is not provided, the reference dataset_name should be specified to calcualte fid score."
if verbose:
print(f"compute FID of a folder with {dataset_name}-{mode}-{dataset_split}-{dataset_res} statistics")
fbname1 = os.path.basename(fdir1)
Expand Down

0 comments on commit c36d31c

Please sign in to comment.