Code Monkey home page Code Monkey logo

lidq92 / compressai-vision Goto Github PK

View Code? Open in Web Editor NEW

This project forked from interdigitalinc/compressai-vision

0.0 0.0 0.0 55.92 MB

CompressAI-Vision helps you design, test and compare Video Compression for Machines pipelines. Compression methods can be either pulled from custom AI-based modules from CompressAI or traditional codecs such as H.266/VVC.

Home Page: https://interdigitalinc.github.io/CompressAI-Vision/

License: BSD 3-Clause Clear License

Shell 4.24% Python 95.29% Makefile 0.15% Dockerfile 0.32%

compressai-vision's Introduction

CompressAI-Vision-logo

CompressAI-Vision helps you to develop, test and evaluate compression models with standardized tests in the context of compression methods optimized for machine tasks algorithms such as Neural-Network (NN)-based detectors.

It currently focuses on two types of pipeline:

  • Video compression for remote analysis, which corresponds to the MPEG "Video Coding for Machines" (VCM) activity.

  • Split inference, which includes an evaluation framework for compressing intermediate features produced in the context of split models. The software supports all thepipelines considered in the related MPEG activity: "Feature Compression for Machines" (FCM).

The figure below shows the split inference pipeline:

split model evaluation pipeline

Features

  • Detectron2 is used for object detection (Faster-RCNN) and instance segmentation (Mask-RCNN)

  • JDE is used for Object Tracking

Documentation

A complete documentation is provided here, including installation, CLI usage, as well as tutorials.

installation

To get started locally and install the development version of CompressAI-Vision, first create a virtual environment with python==3.8:

python3.8 -m venv venv
source ./venv/bin/activate
pip install -U pip

The CompressAI library providing learned compresion modules is available as a submodule. It can be initilized by running:

git submodule update --init --recursive

To install the models relevant for the FCM (feature compression):

First, if you want to manually export CUDA related paths, please source (e.g. for CUDA 11.8):

bash scripts/env_cuda.sh 11.8

Then, run:, please run:

bash scripts/install.sh

For more otions, check:

bash scritps/install.sh --help

Usage

For split-inference pipelines, after installing, please use the following entry point:

compressai-vision-eval --help

For example for full pipelines without any compression, run

compressai-vision-eval --config-name=eval_example

Please check other configuration examples provided in ./cfgs as well as examplary scripts in ./scripts

Test data related to the MPEG FCM activity can be found in ./data/mpeg-fcm/

For developers

After your dev, you can run (and adapt) test scripts from the scripts/tests directory. Please check scripts/tests/Readme.md for more details

Contributing

Code is formatted using black and isort. To format code, type:

make code-format

Static checks with those same code formatters can be run manually with:

make static-analysis

Compiling documentation

Tutorials are produced from notebooks that are in docs/source/tutorials. If you update the notebooks, first you need to run compile.bash therein.

To produce the html documentation, from docs/, run:

make html

To check the pages locally, open docs/_build/html/index.html

License

CompressAI-Vision is licensed under the BSD 3-Clause Clear License

Authors

Fabien Racapé, Hyomin Choi, Eimran Eimon, Sampsa Riikonen, Jacky Yat-Hong Lam

Related links

compressai-vision's People

Contributors

fracape avatar elsampsa avatar chyomin06 avatar eimran-eimon avatar jacky-yat-hong-silo-ai avatar interdigitalsampsa 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.