Coder Social home page Coder Social logo

peterzs / unsupervised-face-representation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1adrianb/unsupervised-face-representation

0.0 0.0 0.0 62 KB

Implementation for Pre-training strategies and datasets for facial representation learning, ECCV 2022

License: MIT License

Shell 1.40% JavaScript 5.50% Python 93.10%

unsupervised-face-representation's Introduction

Pre-training strategies and datasets for facial representation learning

This is the PyTorch implementation for Facial Representation Learning (FRL) paper:

@inproceedings{bulat2022pre,
  title={Pre-training strategies and datasets for facial representation learning},
  author={Bulat, Adrian and Cheng, Shiyang and Yang, Jing and Garbett, Andrew and Sanchez, Enrique and Tzimiropoulos, Georgios},
  journal={ECCV},
  year={2022}
}

Model Zoo

We provide bellow some of the models trained in a self-supervised manner. More models to be added later on.

data backbone url
VGG ResNet 50 model
VGG (1M) ResNet 50 model
FPR-Flickr ResNet 50 model

Installation

To use the code, clone the repo and install the following packages:

git clone https://github.com/1adrianb/unsupervised-face-representation

Requirements

  • Python >= 3.8
  • Numpy
  • pytorch: install instructions
  • torchvision: conda install torchvision -c pytorch
  • apex: install instructions
  • OpenCV: pip install opencv-python
  • H5Py: conda install h5py
  • tensorboard: pip install tensorboard
  • pandas

Note, if you are using pytorch > 1.10 and experience issues with apex, please see #1282. Alternatively you can switch to the native pytorch amp.

Training

bash scripts/run.sh

Before running the script make sure to set the appropiate paths. The models released in the paper were trained using 64 K40 GPUs.

Preparing data

For instructions regarding getting the data, see DATASET.md

Acknowledgement

We thank the original authors for releasing their code: SwAV, MoCo, BYOL, and vissl which we base our code base upon.

unsupervised-face-representation's People

Contributors

1adrianb avatar

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.