Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 4, 2020 11:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
# 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