Hi, thanks for your pytorch implementation of the center face .
I played with your code for a while, and I may found some problem.
by this way, too much background are envoled.
for klass, name in enumerate(names):
def add_class(image):
image_path = os.path.join(images_root, name, image)
return (image_path, klass, name)
images_of_person = os.listdir(os.path.join(images_root, name))
total = len(images_of_person)
training_set += map(
add_class,
images_of_person[:ceil(total * train_val_split)])
validation_set += map(
add_class,
images_of_person[floor(total * train_val_split):])