Coder Social home page Coder Social logo

Comments (8)

MarekKowalski avatar MarekKowalski commented on May 16, 2024

Hi,

The training code for that layer has not been published so far. The additional layer is trained after the rest of the network has been pre-trained using the FaceAlignmentTraining script. Only the weights of this new layer are modified, while the rest of the weights remain frozen.

We trained the confidence layer using the WIDER dataset. To do so, we extracted a number of image patches containing faces and patches that do not contain faces from the dataset (each face image in the dataset is annotated).

Does that explain a bit? If you have more questions let me know, I will try to answer you quicker next time.

Marek

from deepalignmentnetwork.

AaboutL avatar AaboutL commented on May 16, 2024

Hi Marek,
Thanks for your kindly reply. I understand how you train the additional layer. But I still try to find a way to train them together. Do you have any suggestion? Is it a good way to give a weight between landmark loss and the confidence loss and add them up?
Thanks.

from deepalignmentnetwork.

MarekKowalski avatar MarekKowalski commented on May 16, 2024

Hi,

So just to make sure we understand each other: while we trained the additional layer separately, you would like to train it together with the rest of the network, is that correct?

You would definitely need some sort o a weight between the two errors. Moreover, since the datasets used to train the confidence layer and landmark loss are different (one has landmark annotations, the other doesn't), you would also need your loss function to be able to handle that fact.

Marek

from deepalignmentnetwork.

AaboutL avatar AaboutL commented on May 16, 2024

Hi Marek,
It seems a little harder to train the network together with the additional layer than train them separately. Thanks for your suggestion.

from deepalignmentnetwork.

Liz66666 avatar Liz66666 commented on May 16, 2024

Hi Marek,
How can I get the data to train confidence layer ? when I downloaded the WIDER dataset, how can I prepare the training data and labels?
Thanks.

from deepalignmentnetwork.

MarekKowalski avatar MarekKowalski commented on May 16, 2024

Hi,

The WIDER dataset is available here: http://mmlab.ie.cuhk.edu.hk/projects/WIDERFace/
As explained above the additional layer was trained separately, after all the previous layers were trained on the 300-W dataset. In order to train it we extracted a large number of image patches from the WIDER dataset. Some of the patches contained faces (we knew which, since the WIDER dataset has face annotations) and some did not.

During training the patches were fed to the neural network. The task of the confidence layer was to determine whether a given patch contains a face or not.

Best regards,

Marek

from deepalignmentnetwork.

stone226 avatar stone226 commented on May 16, 2024

hi,Marek
I want you give me more details about additional layer .
1 what is type the additional layer ?for example ,full connect layer or others.
2 How many layers the additional layer contains? just one or more than one.
3 where should i insert the additional layer in the network,if i train two stages landmark model
Thanks.

from deepalignmentnetwork.

MarekKowalski avatar MarekKowalski commented on May 16, 2024

Hi,

You can see the definition of the additional layer in line 117 in this file.
It is only a single fully connected layer attached to the penultimate layer of the first stage.

Marek

from deepalignmentnetwork.

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.