Skip to content

Instantly share code, notes, and snippets.

@Jian-Qiao
Last active August 24, 2017 17:47
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 Jian-Qiao/949e612f89f332642f5d236d67392db3 to your computer and use it in GitHub Desktop.
Save Jian-Qiao/949e612f89f332642f5d236d67392db3 to your computer and use it in GitHub Desktop.
#resize
resized_grey_face=[]
resized_grey_face_id=[]
for j in xrange(len(grey_face)):
try:
resized_grey_face.append(resize(grey_face[j],(100,100),mode='constant'))
resized_grey_face_id.append(grey_face_id[j])
except:
print j
pickle.dump(resized_grey_face,open('resized_grey_face.p','wb'))
pickle.dump(resized_grey_face_id,open('resized_grey_face_id.p','wb'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment