Giter Site home page Giter Site logo

ava-mlsp's Introduction

MLSP feature learning on AVA

This is part of the code for the paper "Effective Aesthetics Prediction with Multi-level Spatially Pooled Features". Please cite the following paper if you use the code:

@inproceedings{hosu2019effective,
  title={Effective Aesthetics Prediction with Multi-level Spatially Pooled Features},
  author={Hosu, Vlad and Goldlucke, Bastian and Saupe, Dietmar},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={9375--9383},
  year={2019}}

Multi-level Spatially-Pooled (MLSP) features extracted from ImageNet pre-trained Inception-type networks are used to train aesthetics score (MOS) predictors on the Aesthetic Visual Analysis (AVA) database. The code shows how to train models based on both narrow and wide MLSP features. Several fully trained models are included, together with demos on how to apply them on new images. The models are stored with git LFS, and they can be downloaded from here as well. The included notebooks rely on the kutils library.

Deployment

There are several options to run the code:

  1. Create your own Python environment:
Python 2.7.16
tensorflow-gpu 1.14.0
keras-gpu 2.2.4
  1. Run it on google colab, see example notebook (py3) for prediction.

  2. Deploy the code via the Dockerimage in jupyter-data-science, with the Python 2 environment.

Overview

The following files are included:

extract_mlsp.ipynb:

  • Extract MLSP features from AVA images and save them to HDF5 files; allows storing per image augmentions.

train_mlsp_narrow.ipynb, train_mlsp_narrow_aug.ipynb

  • Train on narrow MLSP features (1×1×16k) from InceptionResNet-v2 with and without augmentation applied before storing features (crops, flips).

train_mlsp_wide.ipynb

  • Train on wide MLSP features (5×5×16k) from InceptionResNet-v2 without augmentation.

predict_mlsp_wide.ipynb (open on google colab (py3))

  • Assembles pre-trained model that predicts scores directly from images (rather than saved MLSP features).

metadata/AVA_data_official_test.csv

  • Contains image meta-data, including file names, corresponding scores, resolutions and the membership in the test/validation/train split.

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.