Giter Site home page Giter Site logo

Comments (6)

jhb86253817 avatar jhb86253817 commented on July 30, 2024

Hi, Here is the cfg file of mobilenetv3 on 300W:

class Config():
    def __init__(self):
        self.det_head = 'pip'
        self.net_stride = 32
        self.batch_size = 16
        self.init_lr = 0.0001
        self.num_epochs = 120
        self.decay_steps = [60, 100]
        self.input_size = 256
        self.backbone = 'mobilenet_v3'
        self.pretrained = True
        self.criterion_cls = 'l2'
        self.criterion_reg = 'l1'
        self.cls_loss_weight = 10
        self.reg_loss_weight = 1
        self.num_lms = 68
        self.save_interval = self.num_epochs
        self.num_nb = 10
        self.use_gpu = True
        self.gpu_id = 0

For get_meanface function, all backbones share the same file, and the data name corresponds to training data, e.g., datat_300W, WFLW, etc.

from pipnet.

DanielXu123 avatar DanielXu123 commented on July 30, 2024

I may have confused.
Have you offered the facial landmark model trained on MobileNetv3 or MobileNet-v2?
The model mentioned above "mobilenet-v3-large model (mobilenetv3-large-1cd25616.pth) in ~/PIPNet/lib " is the pretrained model, not the final facial landmark model, is that right ?

from pipnet.

DanielXu123 avatar DanielXu123 commented on July 30, 2024

Will you provid the trained models of MobileNet-V3 and MobileNet-v2 ? It woild be very appreciated.

from pipnet.

jhb86253817 avatar jhb86253817 commented on July 30, 2024

I did not provide trained model for mobilenets previously. And the one named '"mobilenet-v3-large model (mobilenetv3-large-1cd25616.pth)" is an ImageNet pretrained model for initialization.
I just updated the trained models by adding mobilenet v2 and v3 trained on 300W and WFLW. You may check the shared Google Drive in the ReadMe.

from pipnet.

DanielXu123 avatar DanielXu123 commented on July 30, 2024

Thx!!
I will test the model. Thanks for your sharing.
For the model you trained on WFLW, the config file should be like this:


class Config():
    def __init__(self):
        self.det_head = 'pip'
        self.net_stride = 32
        self.batch_size = 16
        self.init_lr = 0.0001
        self.num_epochs = 120
        self.decay_steps = [60, 100]
        self.input_size = 256
        self.backbone = 'mobilenet_v3'
        self.pretrained = True
        self.criterion_cls = 'l2'
        self.criterion_reg = 'l1'
        self.cls_loss_weight = 10
        self.reg_loss_weight = 1
        self.num_lms = 98
        self.save_interval = self.num_epochs
        self.num_nb = 10
        self.use_gpu = True
        self.gpu_id = 0

Is that right ?
Again, thanks for your awasome work.

from pipnet.

jhb86253817 avatar jhb86253817 commented on July 30, 2024

Yes, I think so. The only difference is the number of landmarks.
Your're welcome :)

from pipnet.

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.