# -*- coding:utf8 -*-
# Created by frank at 20/10/2017

import os
import random
# images_name = os.listdir('./male')
# SIZE = 250
# images_sample = random.sample(images_name, SIZE)
# print(len(os.listdir("/Users/frank/project/faceworks/facespider/male/")))
#
# for image in images_sample:
#     os.rename("/Users/frank/project/faceworks/facespider/male/" + image,
#               "/Users/frank/project/faceworks/facespider/male_sample/" + image)
#
# print(len(os.listdir("/Users/frank/project/faceworks/facespider/male/")))
# print(len(os.listdir("/Users/frank/project/faceworks/facespider/male_sample/")))
# print(images_name[0])
#
# images_name = os.listdir('./female_sample')
#
# for image in images_name:
#     os.rename("/Users/frank/project/faceworks/facespider/female_sample/" + image,
#               "/Users/frank/project/faceworks/grader/images/" + image)
