All Projects → kentsyx → Neural Image Assessment

kentsyx / Neural Image Assessment

Licence: other
A PyTorch Implementation of Neural IMage Assessment

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Neural Image Assessment

Resizer
An image resizing library for Android
Stars: ✭ 406 (+52.06%)
Mutual labels:  photo-editing
Pixpic
PixPic, a Photo Editing App
Stars: ✭ 1,261 (+372.28%)
Mutual labels:  photo-editing
Litrato
Android photo editing app with various filters and tools. Included advanced features like masking, histogram, color picker, EXIF viewer...
Stars: ✭ 54 (-79.78%)
Mutual labels:  photo-editing
Gimp Ml
AI for GNU Image Manipulation Program
Stars: ✭ 749 (+180.52%)
Mutual labels:  photo-editing
Nimp
Nimp - Node-based image manipulation program.
Stars: ✭ 45 (-83.15%)
Mutual labels:  photo-editing
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+718.35%)
Mutual labels:  photo-editing
Inpainting
Want to remove something(someone) from a photo as it never was there? This is .NET implementation of content-aware fill. It smartly fills in unwanted or missing areas of photographs.
Stars: ✭ 280 (+4.87%)
Mutual labels:  photo-editing
backgroundremover
BackgroundRemover lets you Remove Background from images and video with a simple command line interface
Stars: ✭ 1,011 (+278.65%)
Mutual labels:  photo-editing
Rawkit
ctypes based libraw bindings
Stars: ✭ 60 (-77.53%)
Mutual labels:  photo-editing
nuophoto
📷 Web based image editor
Stars: ✭ 59 (-77.9%)
Mutual labels:  photo-editing
Photo Editor
Photo editor with a lot of cool features
Stars: ✭ 753 (+182.02%)
Mutual labels:  photo-editing
Photoeditor
Simple Photo Editing App
Stars: ✭ 20 (-92.51%)
Mutual labels:  photo-editing
Lfimagepickercontroller
一个支持多选图片和视频的图片选择器,同时有预览、编辑功能
Stars: ✭ 212 (-20.6%)
Mutual labels:  photo-editing
Photo Editor Android
Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories.
Stars: ✭ 463 (+73.41%)
Mutual labels:  photo-editing
Fixture
A no-bullshit, free and open source raster graphics editor.
Stars: ✭ 33 (-87.64%)
Mutual labels:  photo-editing
Lfmediaeditingcontroller
Media Editor (图片编辑、视频编辑)
Stars: ✭ 401 (+50.19%)
Mutual labels:  photo-editing
Photojshop
🎨 Photo editing JavaScript library
Stars: ✭ 137 (-48.69%)
Mutual labels:  photo-editing
Photoflare
Quick, simple but powerful Cross Platform image editor.
Stars: ✭ 260 (-2.62%)
Mutual labels:  photo-editing
Gimel-Studio
Old repo of the node-based image editor. See https://github.com/GimelStudio/GimelStudio for the next generation of Gimel Studio 🚀
Stars: ✭ 55 (-79.4%)
Mutual labels:  photo-editing
Graphite
Open source 2D node-based raster/vector graphics editor (Photoshop + Illustrator + Houdini = Graphite)
Stars: ✭ 223 (-16.48%)
Mutual labels:  photo-editing

NIMA: Neural IMage Assessment

python 3.6+ MIT License

This is a PyTorch implementation of the paper NIMA: Neural IMage Assessment (accepted at IEEE Transactions on Image Processing) by Hossein Talebi and Peyman Milanfar. You can learn more from this post at Google Research Blog.

Implementation Details

  • The model was trained on the AVA (Aesthetic Visual Analysis) dataset, which contains roughly 255,500 images. You can get it from here. Note: there may be some corrupted images in the dataset, remove them first before you start training.

  • The dataset is into 229,981 images for training, 12,691 images for validation and 12,818 images for testing.

  • An ImageNet pretrained VGG-16 is used as the base network of the model, for which I got a ~0.072 EMD loss on the validation set. Haven't tried the other two options (MobileNet and Inception-v2) in the paper. You are very welcome to make your own extensions.

  • The learning rate setting differs from the original paper. I can't seem to get the model to converge with momentum SGD using an lr of 3e-7 for the conv base and 3e-6 for the dense block. Also I didn't do much hyper-param tuning therefore you could probably get better results. Other settings are all directly mirrored from the paper.

Requirements

It is recommeded to use conda to manage your env. For example do

conda create -n nima python=3.6
conda activate nima
pip install -r requirements.txt

to install the dependancies.

Usage

To start training on the AVA dataset, first download the dataset from the link above and decompress which should create a directory named images/. Then download the curated annotation CSVs below which already splits the dataset (You can create your own split of course). Then do

python main.py --img_path /path/to/images/ --train --train_csv_file /path/to/train_labels.csv --val_csv_file /path/to/val_labels.csv --conv_base_lr 3e-4 --dense_lr 3e-3 --decay --ckpt_path /path/to/ckpts --epochs 100 --early_stoppping_patience 10

For inference, here the predicted score mean and std is generated. See predictions/ for an example format.

python test.py --model /path/to/your_model --test_csv /path/to/test_labels.csv --test_images /path/to/images --predictions /path/to/save/predictions

Training Statistics

Training is done with early stopping monitoring. Here I set early_stopping_patience=10.

Pretrained Model

Google Drive

Annotation CSV Files

Train Validation Test

Example Results

  • Here shows the predicted mean scores of some images from the validation set. Each image title starts with ground-truth rating followed by the predicted mean and std in the parentheses.

  • Also some failure cases...

  • The predicted aesthetic ratings from training on the AVA dataset are sensitive to contrast adjustments. Below images from left to right in a row-major order are with progressively sharper contrast, with lower leftmost being the original input. Contrast adjustment is done using ImageEnhance from PIL.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].