From 57664852acdab06036171f69ad79355ca53b7958 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 22 Mar 2024 14:55:56 +0800 Subject: [PATCH] fix: typos Signed-off-by: guoguangwu --- cm/random_util.py | 2 +- evaluations/evaluator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cm/random_util.py b/cm/random_util.py index 64649c8..7224692 100644 --- a/cm/random_util.py +++ b/cm/random_util.py @@ -97,7 +97,7 @@ def set_seed(self, seed): class DeterministicIndividualGenerator: """ RNG to deterministically sample num_samples samples that does not depend on batch_size or mpi_machines - Uses a separate rng for each sample to reduce memoery usage + Uses a separate rng for each sample to reduce memory usage """ def __init__(self, num_samples, seed=0): diff --git a/evaluations/evaluator.py b/evaluations/evaluator.py index 622e27e..8c7d8cf 100644 --- a/evaluations/evaluator.py +++ b/evaluations/evaluator.py @@ -338,7 +338,7 @@ def evaluate( return { "fraction": float(np.mean(batch_predictions)), "batch_predictions": batch_predictions, - "max_realisim_score": max_realism_score, + "max_realism_score": max_realism_score, "nearest_indices": nearest_indices, }