Skip to main content

Debiased Mapping for Full-Reference Image Quality Assessment

Project description

Debiased Mapping for Full-Reference Image Quality Assessment

This is the repository of paper Debiased Mapping for Full-Reference Image Quality Assessment.

Highlights:

  • The perception bias of existing deep-feature based FR-IQA measures is explored, which may cause inferior performance on misaligned features and restored content.
  • We propose an SVD-based debiased mapping to mitigate the perception bias. Specifically, the SVs distance and base angle consistency are designed to capture and measure the feature distortion reliably.

====== PyTorch Implementation ======

Installation:

  • pip install DMM-PyTorch

Requirements:

  • Python >= 3.6
  • PyTorch >= 1.0

Usage:

from DMM_PyTorch import DMM
from torchvision import transforms
from PIL import Image

def prepare_PIL_Image(PIL_Image):
    msize = min(PIL_Image.size)
    if  msize>128:
        tar_size = max(int(msize/(1.0*48))*32,128)
        image =transforms.functional.resize(PIL_Image,tar_size)
    image = transforms.ToTensor()(image)
    return image.unsqueeze(0)

model = DMM().cuda()

ref_pth =  './Images/I04.BMP'  
dist_pth =  './Images/i04_24_2.bmp' 
  
ref =  prepare_PIL_Image(Image.open(ref_pth).convert("RGB")).cuda()
dist = prepare_PIL_Image(Image.open(dist_pth).convert("RGB")).cuda()

dmm_score = model(ref, dist)
print(dmm_score)

or

git clone https://github.com/Baoliang93/DMM
cd DMM_PyTorch
python DMM.py --ref <ref_path> --dist <dist_path>

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DMM_PyTorch-0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DMM_PyTorch-0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file DMM_PyTorch-0.1.tar.gz.

File metadata

  • Download URL: DMM_PyTorch-0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.0

File hashes

Hashes for DMM_PyTorch-0.1.tar.gz
Algorithm Hash digest
SHA256 80b1ba071a0cead87eb65e55906c11206ecdc217d6a5653dfc2df117f20fef5f
MD5 d337ff076e1a47718eb022789a84db7c
BLAKE2b-256 b2890c22052f021c89602adc78d75aebee4dbed171f5f6d93d968f29e7521d6c

See more details on using hashes here.

File details

Details for the file DMM_PyTorch-0.1-py3-none-any.whl.

File metadata

  • Download URL: DMM_PyTorch-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.0

File hashes

Hashes for DMM_PyTorch-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f66ff90a95d2b548738c6288720300db327f2c0a18f7c90bb6c0c5c7d7a493e3
MD5 b924bfb7ede2e3431fada8ecd390a4d7
BLAKE2b-256 cb306f7749fee152bae2303803a6738e5a69afaec65ca633964dfff573aa3cfe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page