Giter VIP home page Giter VIP logo

Comments (7)

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

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()

from facelib.

Note-Liu avatar Note-Liu commented on July 30, 2024

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!

from facelib.

Note-Liu avatar Note-Liu commented on July 30, 2024

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 ?

from facelib.

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

Although I do not know what you mean by original, I train on UTKFace Dataset with ShufflenetFull as the backbone

from facelib.

Note-Liu avatar Note-Liu commented on July 30, 2024

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.
I have another question to ask:

def multitask_loss(input, target):
input_gender = input[:, :2]
input_age = input[:, -1]
loss_gender = F.cross_entropy(input_gender, target[:, 0].long())
loss_age = F.l1_loss(input_age, target[:, 2])

return loss_gender / (.16) + loss_age * 2

I want to know "loss_gender / (.16) + loss_age * 2",how is the ratio determined? Is it from the experiment?

from facelib.

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

Yep, the loss ratio results from some experiments
Depending on how much you care about gender detection or age estimation.

from facelib.

Note-Liu avatar Note-Liu commented on July 30, 2024

Yep, the loss ratio results from some experiments
Depending on how much you care about gender detection or age estimation.

Thank you for your patience!

from facelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.