Skip to content

Commit

Permalink
Fixing FID warnings flake issue
Browse files Browse the repository at this point in the history
Summary: Fixing a previous flake issue with logging a warning.

Reviewed By: JKSenthil

Differential Revision: D49288048

fbshipit-source-id: 311b0608ef122556e24f89a38bb861905ae429bf
  • Loading branch information
enmalik authored and facebook-github-bot committed Sep 18, 2023
1 parent e0444c6 commit ceb32b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torcheval/metrics/image/fid.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def compute(self: TFrechetInceptionDistance) -> Tensor:
f"but currently running with {self.num_real_images} real images and {self.num_fake_images} fake images."
"Returning 0.0",
RuntimeWarning,
stacklevel=2,
)

return torch.tensor(0.0)
Expand Down

0 comments on commit ceb32b1

Please sign in to comment.