Commit 10bf94f9 authored by Ben Glocker's avatar Ben Glocker
Browse files

fixed typo in comment

parent 06728322
...@@ -637,11 +637,11 @@ ...@@ -637,11 +637,11 @@
############# TODO: Repeat elements x4 along the two spatial dimensions ##################### ############# TODO: Repeat elements x4 along the two spatial dimensions #####################
pred_probs_padded_ups = np.repeat(pred_probs_padded, repeats=4, axis=???) # [N,Class,H,W] pred_probs_padded_ups = np.repeat(pred_probs_padded, repeats=4, axis=???) # [N,Class,H,W]
pred_probs_padded_ups = np.repeat(pred_probs_padded_ups, repeats=???, axis=3) pred_probs_padded_ups = np.repeat(pred_probs_padded_ups, repeats=???, axis=3)
print("Plotting image after repetition....................") print("Plotting image after repetition....................")
plot_image(pred_probs_padded_ups[0,real_lbl,:,:], cmap="bwr") plot_image(pred_probs_padded_ups[0,real_lbl,:,:], cmap="bwr")
print("Upsampled image after repetition has shape:", pred_probs_padded_ups.shape) # (1, 10, 33, 33) print("Upsampled image after repetition has shape:", pred_probs_padded_ups.shape) # (1, 10, 36, 36)
############################################################################################ ############################################################################################
# Convolve with uniform kernel: # Convolve with uniform kernel:
kernel = np.ones([1,1,4,4])/16. kernel = np.ones([1,1,4,4])/16.
pred_probs_padded_ups = signal.convolve(pred_probs_padded_ups, kernel, mode='valid') pred_probs_padded_ups = signal.convolve(pred_probs_padded_ups, kernel, mode='valid')
print("Plotting image after convolution...................") print("Plotting image after convolution...................")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment