Error in face data collect code

face_data=face_data.reshape((face_data.shape[0],-1))
ValueError: cannot reshape array of size 0 into shape (0,newaxis)
Why am I getting this error?