age-gender-estimation icon indicating copy to clipboard operation
age-gender-estimation copied to clipboard

Training with LAP dataset

Open eviling opened this issue 6 years ago • 3 comments

Hello,

I am trying to train the model using the LAP dataset, but I am not sure how to do it.

I downloaded the training dataset with the images and th CVS file. Can you tell me how to change the code and traing the model with this dataset.

eviling avatar Apr 03 '18 10:04 eviling

Create the model with age prediction output layer and finetune it.

    model1 = WideResNet(img_size, depth=depth, k=k)()
    model1.load_weights(weight_file)
    model2 = Model(inputs=model1.input, outputs=model1.get_layer(name="pred_age").output)
    model2.summary()

    # finetune model2 with the LAP dataset

yu4u avatar Apr 03 '18 19:04 yu4u

I created the .mat file with the lap dataset y do the training only for age but it is giving me realli bad results even in the training set.

image

Do you have an idea why is nor working?

eviling avatar Apr 05 '18 07:04 eviling

Did you use cropped face images for training?

yu4u avatar Apr 10 '18 13:04 yu4u