Skip to content

Commit

Permalink
typo in the docs for model evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
edyoshikun committed Aug 25, 2024
1 parent 34ab305 commit c0f7fd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c0f7fd9

Please sign in to comment.