(self)
| 45 | |
| 46 | class fid_wrapper: |
| 47 | def __init__(self): |
| 48 | self.device = "cuda" if torch.cuda.is_available() else "cpu" |
| 49 | self.fid = FrechetInceptionDistance(feature=64) |
| 50 | |
| 51 | @torch.no_grad() |
| 52 | def __call__(self, pred_imgs, gt_imgs): |
nothing calls this directly
no outgoing calls
no test coverage detected