Git Product home page Git Product logo

yearbook-dating's Introduction

Dating Historical Yearbook Photos

This is the reference implementation of the dating experiments from the updated version of https://arxiv.org/abs/1511.02575:

A Century of Portraits: A Visual Historical Record of American High School Yearbooks
Shiry Ginosar, Kate Rakelly, Sarah M. Sachs, Brian Yin, Crystal Lee, Philipp Krähenbühl and Alexei A. Efros
arXiv: Coming soon!

Contents

  • src: net, solver, and data layer specifications to train Yearbook dating models
    • yearbook_layers.py: a Python data layer that loads images and feeds them into a Caffe network
    • solver.py: set solver parameters in Python
    • net.py: NetSpec defines the network architecture
    • solve.py: training script
  • notebooks: visualize training curves, evaluate trained networks and reproduce paper figures
  • data: data splits
  • caffe: the Caffe framework, included as a git submodule pointing to a compatible version

License

This project is licensed for open non-commercial distribution under the UC Regents license; see LICENSE. Its dependencies, such as Caffe, are subject to their own respective licenses.

Requirements & Installation

Caffe, Python, and Jupyter are necessary for all of the experiments. Any installation or general Caffe inquiries should be directed to the caffe-users mailing list.

  1. After cloning this repository, do git submodule init and git submodule update inside the Caffe directory to clone the caffe submodule.
  2. Install Caffe dependencies. See the installation guide and try Caffe through Docker (recommended). Make sure to configure pycaffe, the Caffe Python interface, too.
  3. Follow Caffe installation instructions to install required Python packages. Miniconda comes with many of the requirements (recommended).
  4. Install Jupyter, the interface for viewing, executing, and altering the notebooks.
  5. Configure your PYTHONPATH as indicated by the included .envrc so that this project dir and pycaffe are included.
  6. Download the Yearbook dataset from the project page. Place the women dataset in data/faces/women/images and the men dataset in data/faces/men/images.

If you don't want to train your own model, the Python notebooks can be used for inference with our trained dating models To train a dating model, download the model weights for VGG-16 pre-trained on ILSVRC and place them in a directory called models. Configure training settings in train_example.sh, then call this script to train a dating network.

yearbook-dating's People

Contributors

katerakelly avatar

Watchers

 avatar  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.