Skip to content

Instantly share code, notes, and snippets.

@tanviredu
Created August 4, 2020 14:31
Show Gist options
  • Save tanviredu/bf05b269186a01758ea0553d69bcc695 to your computer and use it in GitHub Desktop.
Save tanviredu/bf05b269186a01758ea0553d69bcc695 to your computer and use it in GitHub Desktop.
import cv2
X_train=[]
IMG_SIZE= 32
for x in train_images:
new_array = cv2.resize(x[0],(IMG_SIZE,IMG_SIZE))
X_train.append(new_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment