Giter Club home page Giter Club logo

facequality's People

Contributors

wjtan99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

facequality's Issues

Onnx Converted model

Hi,

I try to conver to onnx but not succesfull ? the bacbone model only results 512 but it should more

Best

训练自己的数据集时遇到了问题

File "train_quality.py", line 179, in
train()
File "train_quality.py", line 127, in train
confidence = QUALITY(fc)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 155, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 165, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 85, in parallel_apply
output.reraise()
File "/opt/conda/lib/python3.6/site-packages/torch/_utils.py", line 395, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in replica 0 on device 0.

File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
output = module(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/tmp/facequality/models/model_resnet.py", line 110, in forward
x = self.qualtiy(x)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 91, in forward
return F.linear(input, self.weight, self.bias)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/functional.py", line 1676, in linear
output = input.matmul(weight.t())
RuntimeError: mat1 dim 1 must match mat2 dim 0

数据集转换

你好,我在你给的连接里下载了faces_webface_112x112数据集。但是你给的rec2image.py连接没有了。现在不能生成训练文件。您能再提供一下rec2image.py吗?

How to train with another backbone?

Thank you for perfect repository <3
I see that you provided code to training model Arcface using Resnet backbone?
So I want to train with MobileFacenet backbone.
Can you help me resolve this problem?
Thank you <3

Why we use Focal Loss?

Hi, Thanks for your amazing work.

However, I have a question why does this implementation use focal loss instead of the loss function below that we see in the paper?

image

Learning rate scheduler doesn't match as stated in the paper.

In the paper, you said that it would be decayed by 10 after 30, 60, 90 epoch for total of 100 epochs. But in the code, I saw that you were using CosineAnnealingRate, which doesn't have the effect as the above.
And also, I saw that u pass T_max hard-code 10 epochs (10 * len(train_loader)) -> is this intentional? Cause this would make the LR varies in a cyclical way.
Thank you for reading and answering.

About training in step 2 anhd step 3

I see the config in step 2 is:
...
BACKBONE_RESUME_ROOT = './backbone_resume.pth'
HEAD_RESUME_ROOT = './head_resume.pth'
TRAIN_FILES = './dataset/face_train_ms1mv2.txt'
BACKBONE_LR = 0.05
PRETRAINED_BACKBONE = ''
PRETRAINED_QUALITY = ''
...
So where can i get the backbone_resume.pth and head_resume.pth
And where can i get pretrained_backbone_resume.pth and pretrained_qulity_resume.pth in step 3?
...
BACKBONE_RESUME_ROOT = ''
HEAD_RESUME_ROOT = ''
TRAIN_FILES = './dataset/face_train_ms1mv2.txt'
BACKBONE_LR = 0.05
PRETRAINED_BACKBONE = ''
PRETRAINED_QUALITY = ''
PRETRAINED_BACKBONE = 'pretrained_backbone_resume.pth'
PRETRAINED_QUALITY = 'pretrained_qulity_resume.pth'
...

about Implementation

Hello,I am very interested in your work.and I want to ask some questions, why is the implementation of the code inconsistent with the description in the paper, such as training parameters, learning rate strategy, etc.

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.