Giter Club home page Giter Club logo

rtrppg's Introduction

Codebase for "3DCNN-based Real-Time rPPG network (RTrPPG)"

Original paper: [Paper link].

Model

3DCNN RTrPPG architecture:

Time-frequency based loss function NPSNR:

Installation

To install an anaconda virtual enviroment with the dependencies, you can run in your anaconda prompt:

conda env create -f \...\rtrppg\rtrppg_env.yaml

Build

This project was tested with :

  • Windows 10
  • Anaconda 4.12.0
  • Python 3.9.12
  • Pytorch 1.10.2

Usage

RTrPPG demo

This demo uses the RTrPPG network trained on the VIPL-HR database [1] to generate an RPPG signal from a video of dimensions: Batch=1, Channels=3 (YUV), Time=128, Width = 8, Height = 8. The demo runs on CPU only so that it works on all hardware. However, changing the code to work on GPU is really easy (note to install the respective packages to work on GPU).

Inside the repository folder run the following command line:

python demo.py --run rtrppg_demo

This demo generates the resulting RPPG signal and saves it in the repository folder as "Output.png."

Citation

If you find this code helpful in any way, please cite our paper:

@inproceedings{botina2022rtrppg,
    title={RTrPPG: An Ultra Light 3DCNN for Real-Time Remote Photoplethysmography},
    author={Botina-Monsalve, Deivid and Benezeth, Yannick and Miteran, Johel},
    booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
    pages={2146--2154},
    year={2022}
}

RTrPPG is for research purposes only, and commercial use is not allowed.

Acknowledgments

  • The example video used belong to the VIPL-HR database proposed by Niu, Xuesong, et al [1].
  • The baseline network was based on the following repository: https://github.com/ZitongYu/PhysNet

References

[1] Niu, Xuesong, Hu Han, Shiguang Shan, and Xilin Chen. "VIPL-HR: A multi-modal database for pulse estimation from less-constrained face video." In Asian conference on computer vision, pp. 562-576. Springer, Cham, 2018.

rtrppg's People

Contributors

deividbotina-alv 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.