-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pred = torch.argmax(input[:, :2], dim=1) #18
Comments
first two columns are logits for (male, female) and the second one is for Age as you can see I've used last index (aka 3) for age def l1loss_age(input, targs):
return F.l1_loss(input[:, -1], targs[:, -1]).mean() |
Thanks for your reply! |
In Age & Gender Estimation,did you use the original image of UTKFace Dataset to train ShufflenetFull ? |
Although I do not know what you mean by original, I train on UTKFace Dataset with ShufflenetFull as the backbone |
Thanks!I see what you mean. def multitask_loss(input, target):
I want to know "loss_gender / (.16) + loss_age * 2",how is the ratio determined? Is it from the experiment? |
Yep, the loss ratio results from some experiments |
Thank you for your patience! |
In model.py:
def accuracy_gender(input, targs):
pred = torch.argmax(input[:, :2], dim=1)
y = targs[:, 0]
return torch.sum(pred == y)
I want to know why not pred = input[:,:1] ?
I think first two columns of input are genders and races.
The text was updated successfully, but these errors were encountered: