Giter Site home page Giter Site logo

center-loss.pytorch's Introduction

@chenglu's Holopin board

你好,I'm Chenglu 👋

我的 GitHub 数据

🦄 Status

  • 🔭 I’m currently working on featurize.cn
  • 🌱 I’m currently learning Computer Vision
  • 👯 I’m looking to collaborate on Web Full Stack Development/Computer Vision
  • 🤔 I’m looking for help with PyTorch Tao
  • 📫 How to reach me: [email protected]

🏁 Kaggle

I solo at Kaggle competitions randomly.

competition_light

center-loss.pytorch's People

Contributors

louis-she 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  avatar

center-loss.pytorch's Issues

Questions About the model

Hi, thanks for your pytorch implementation of the center face .
I played with your code for a while, and I may found some problem.

  1. lfw dataset, It seems that you use the whole picture instead of using the face detection bounding boxes or just using center cropped images for training and testing, take a look at some pictures in the dataset,

jiang_zemin_0001

jiang_zemin_0005

by this way, too much background are envoled.

  1. overlap between training set and test set.
    for klass, name in enumerate(names):
        def add_class(image):
            image_path = os.path.join(images_root, name, image)
            return (image_path, klass, name)

        images_of_person = os.listdir(os.path.join(images_root, name))
        total = len(images_of_person)

        training_set += map(
                add_class,
                images_of_person[:ceil(total * train_val_split)])
        validation_set += map(
                add_class,
                images_of_person[floor(total * train_val_split):])

I think you should use samples listed in the pairsDevTrain.txt to train and pairsDevTest.txt to test by the lfw paper

Evaluate

Hi, thanks for your work, i want to ask you a question, how to do the test? I tested the resnet50 and epoch_100.pth.tar on lfw, with crop face, but the accuracy is 0.66. How can I reproduce this result? thank you.

Why separate parameters?

Hello, I am a beginner. So maybe my question is simple. Please forgive me.
In the main.py. The code:

    model = model_class(num_classes).to(device)

    trainables_wo_bn = [param for name, param in model.named_parameters() if
                        param.requires_grad and 'bn' not in name]
    trainables_only_bn = [param for name, param in model.named_parameters() if
                          param.requires_grad and 'bn' in name]

    optimizer = torch.optim.SGD([
        {'params': trainables_wo_bn, 'weight_decay': 0.0001},
        {'params': trainables_only_bn}
    ], lr=args.lr, momentum=0.9)

I want to know why you separate the parameters to two parts: trainables_wo_bn and trainables_only_bn,
In the optimizer, I always write:
optimizer = torch.optim.SGD(model.parameters(), lr = args.lr, momentum=0.9)
Did I do something wrong? Please help me, thank you so much!

Does this implementation require landmarks of dataset?

Could you please let me know if you are generating landmarks for lfw? I am currently using a dataset with low resolution images for which I am unable to generate landmarks (using MTCNN), so I'm looking for an implementation that isn't using landmarks..

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.