From c0f7fd904c7c0c0a2187cd3e9404117b5d227c24 Mon Sep 17 00:00:00 2001 From: edyoshikun Date: Sun, 25 Aug 2024 18:06:00 +0000 Subject: [PATCH] typo in the docs for model evaluation --- solution.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solution.py b/solution.py index 2a34629..38f2fe3 100644 --- a/solution.py +++ b/solution.py @@ -1958,11 +1958,11 @@ def clip_highlight(image: np.ndarray) -> np.ndarray: ax[1,0].set_title('No perturbation') -# 2-sigma gaussian blur +# Rescale the pixel value up/down with torch.inference_mode(): phase = batch["source"].to(model.device)[:,:,:,y_slice,x_slice] # ########## TODO ############## - # Hint: Scale the phase intensity + # Hint: Scale the phase intensity up/down until the model breaks phase = phase * ...... # ####################### pred = model(phase).cpu().numpy() @@ -1993,11 +1993,11 @@ def clip_highlight(image: np.ndarray) -> np.ndarray: ax[1,0].set_title('No perturbation') -# 2-sigma gaussian blur +# Rescale the pixel value up/down with torch.inference_mode(): phase = batch["source"].to(model.device)[:,:,:,y_slice,x_slice] # ########## SOLUTION ############## - # Hint: Scale the phase intensity + # Hint: Scale the phase intensity up/down until the model breaks phase = phase * 10 # ####################### pred = model(phase).cpu().numpy()