Code Monkey home page Code Monkey logo

uvq's Introduction

UVQ: Universal Video Quality Model

This repository contains checkpointed models of Google's Universal Video Quality (UVQ) model. UVQ is a no-reference perceptual video quality assessment model that is designed to work well on user-generated content, where there is no pristine reference.

Read this blog post for an overview of UVQ:

"UVQ: Measuring YouTube's Perceptual Video Quality", Google AI Blog 2022

More details are available in our paper:

Yilin Wang, Junjie Ke, Hossein Talebi, Joong Gon Yim, Neil Birkbeck, Balu Adsumilli, Peyman Milanfar, Feng Yang, "Rich features for perceptual quality assessment of UGC videos", CVPR 2021.

The corresponding data from the paper is available for download from: YouTube UGC Dataset

Running the code

Dependencies

You must have FFmpeg installed and available on your path.

The models and code require Python 3.6 (or greater) and Tensorflow.

With virtualenv, you can install the requirements to a virtual environment:

virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

Predict Quality

You can grab some examples videos from the YouTube UGC Dataset. For example, you can get Gaming_1080P-0ce6_orig.mp4 using curl:

curl -o Gaming_1080P-0ce6_orig.mp4 https://storage.googleapis.com/ugc-dataset/vp9_compressed_videos/Gaming_1080P-0ce6_orig.mp4

You can then run the example:

mkdir -p results
python3 uvq_main.py --input_files='Gaming_1080P-0ce6_orig,20,Gaming_1080P-0ce6_orig.mp4' --output_dir results --model_dir models

Input file formatting

The input files format is a line with the following fields:

id,video_length,filepath

Results

The output_dir will contain a csv file with the results for each model. For example,

cat /tmp/results/mos_ytugc20s_0_Gaming_1080P-0ce6_orig.mp4_orig.csv 

Gives:

Gaming_1080P-0ce6,compression,3.927867603302002
Gaming_1080P-0ce6,content,3.945391607284546
Gaming_1080P-0ce6,distortion,4.267196607589722
Gaming_1080P-0ce6,compression_content,3.9505696296691895
Gaming_1080P-0ce6,compression_distortion,4.062019920349121
Gaming_1080P-0ce6,content_distortion,4.067790699005127
Gaming_1080P-0ce6,compression_content_distortion,4.058663845062256

We provide multiple predcited scores, using different combinations of UVQ features. compression_content_distortion (combining three features) is our default score for Mean Opinion Score (MOS) prediction.

The output features folder includes UVQ labels and raw features:

Gaming_1080P-0ce6_orig_feature_compression.binary
Gaming_1080P-0ce6_orig_feature_content.binary
Gaming_1080P-0ce6_orig_feature_distortion.binary
Gaming_1080P-0ce6_orig_label_compression.csv
Gaming_1080P-0ce6_orig_label_content.csv
Gaming_1080P-0ce6_orig_label_distortion.csv

UVQ labels (.csv, each row corresponding to 1s chunk):
compression: 16 compression levels per row, corresponding to 4x4 subregions of the entire frame.
distortion: 26 distortion types defined in KADID-10k for 2x2 subregions. The first element is the undefined type.
content: 3862 content labels defined in YouTube-8M.

UVQ raw features (in binary):
25600 float numbers per 1s chunk.

Contributors

uvq's People

Watchers

 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.