Skip to content

the-super-toys/glimpse-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glimpse

A content-aware cropping library (backstage)

We would not be 100% open source if we didn't also share our Deep Learning model with you, so... here it is!

Dataset

You can use the dataset which we created by downloading it from here

Alternatively, if you want to do the heavy lifting of preparing the dataset by yourself, download the images and annotations from http://salicon.net/download/ then use the code in the data-prepare folder to generate the heatmaps in form of images.

The data used for both training and validation is openly available on salicon web. In order to consume the images of the dataset and generate the associated heatmaps we used salicon-api, which is contained in the PythonApi module of this repository.

Models

If you just want to get a quick glance at the model architecture just go to inference.ipynb and check it out, also there you can see the model output and a small benchmark on it's latency on my computer (9ms with 86% accuracy, if you're wondering).

architecture

Both PyTorch and Keras implementations are available. You can check either PyTorch notebook or Keras one depending on your taste :)

In order to build Glimpse model we took inspiration from several papers:

Don't be shy

We'd love to hear your proposals for improving the architecture, increasing the dataset (maybe we could train domain specific models for faces, or food, or animals) or whatever, so feel free to create an issue with your improvement ideas, or fork this repository and send us a Pull Request!!

Client-side implementations

Android

About

The Deep Learning guts that you're all curious about

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published