Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 4, 2020 11:14
Show Gist options
  • Save prateekjoshi565/ec6492292001f34e5db0de977631905f to your computer and use it in GitHub Desktop.
Save prateekjoshi565/ec6492292001f34e5db0de977631905f to your computer and use it in GitHub Desktop.
# get low resolution images for the training set
train_x_px = []
for i in range(train_x.shape[0]):
temp = pixalate_image(train_x[i,:,:,:])
train_x_px.append(temp)
train_x_px = np.array(train_x_px)
# get low resolution images for the validation set
val_x_px = []
for i in range(val_x.shape[0]):
temp = pixalate_image(val_x[i,:,:,:])
val_x_px.append(temp)
val_x_px = np.array(val_x_px)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment