Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omchaithanyav/5b0406afb484459e18ca5349756c673c to your computer and use it in GitHub Desktop.
Save omchaithanyav/5b0406afb484459e18ca5349756c673c to your computer and use it in GitHub Desktop.
for features, label in training_data:
x_train.append(features)
y_train.append(label)'
x_train=np.array(x_train).reshape(-1,256,256,3)
for features, label in testing_data:
x_test.append(features)
y_test.append(label)
x_test = np.array(x_test).reshape(-1,256,256,3)
x=cv2.resize(training_data[0][0],(256,256))
plt.imshow(x,cmap='gray')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment