We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f02ed commit 23108fdCopy full SHA for 23108fd
denoising_diffusion_pytorch/fid_evaluation.py
@@ -53,7 +53,8 @@ def load_or_precalc_dataset_stats(self):
53
ckpt = np.load(path + ".npz")
54
self.m2, self.s2 = ckpt["m2"], ckpt["s2"]
55
self.print_fn("Dataset stats loaded from disk.")
56
- except FileNotFoundError:
+ ckpt.close()
57
+ except OSError:
58
num_batches = int(math.ceil(self.n_samples / self.batch_size))
59
stacked_real_features = []
60
self.print_fn(
0 commit comments