Coder Social home page Coder Social logo

zhangyingyue / image-quality-assessment-by-multiple-models Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rainfzy/image-quality-assessment-by-multiple-models

0.0 0.0 0.0 42.45 MB

Using multiple models (CNN, LeNet-5, ResNet, VGG) to implement IQA and compare their performance

Python 100.00%

image-quality-assessment-by-multiple-models's Introduction

Image Quality Assessment by Mutiple Models

Prepare

  1. download the database you need and put it under ./data, e.g. ./data/LIVE/fastfading ...

    LIVE (release2 recommended): http://live.ece.utexas.edu/research/Quality/subjective.htm

    tid2008: http://www.ponomarenko.info/tid2008.htm

    tid2013: http://www.ponomarenko.info/tid2013.htm

  2. specify datainfo andim_dir in config.yaml

Training

CUDA_VISIBLE_DEVICES=0 python main.py --model='resnet18' --database='LIVE'
  • Train/Val/Test split ratio in intra-database experiments can be set in config.yaml (default is 0.6/0.2/0.2).

  • Compare different models' performance:

Test Demo

Input an image and output its IQA score

run:

python test_demo.py --im_path=data/images/test_images/blur.jpg --model_file=models/resnet18-LIVE
  • --im_path: put your test image in the folder -- data/test_images

  • --model_file: choose your trained model, the pre-trained resnet18-LIVE model is given

Visualization

In the server (host:port):

tensorboard --logdir=tensorboard_logs --port=6006

e.g. put the dpai-11 file in logger/test_log, run:

tensorboard --logdir="./logger/test_log" --port=6006

In your PC:

ssh -p port -L 6006:localhost:6006 user@host
  • localhost: localhost's IP address
  • user: user's name in host
  • host: host's IP address

See the visualization in your PC:

Enter localhost:16006 in the browser

Requirements

conda create -n reproducibleresearch pip python=3.6
source activate reproducibleresearch
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
source deactive

Note: You need to install the right CUDA version.

image-quality-assessment-by-multiple-models's People

Contributors

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