Skip to content

Instantly share code, notes, and snippets.

@Jian-Qiao
Created August 24, 2017 19:53
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/d30c760294c19ba5535f1df8bddbd7f9 to your computer and use it in GitHub Desktop.
Save Jian-Qiao/d30c760294c19ba5535f1df8bddbd7f9 to your computer and use it in GitHub Desktop.
Facial_Data=[]
director=[]
filename=[]
n=0
Face_Data=pickle.load(open('Face_Data.p','rb'))
for i in xrange(len(Face_Data)):
plt.imshow(Face_Data[i])
plt.show()
label=input('Label this Face: 1=Disgust, 2=Happy, 3=Angry, 4=Fear, 5=Shame, 6=Doubt/Negative, 7=Concerned, 8=Neutral, 9=Surprised, 10=Sad')
Facial_Data.append([color.rgb2grey(Face_Data[i]),label])
n+=1
print 'This is the ',n,'th face, There are totally 493 face to label'
pickle.dump(Facial_Data,'Facial_Data.p')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment