Skip to content

PyTorch implementation of pulse measurement neural networks.

Notifications You must be signed in to change notification settings

Oichii/DeepPulse-pytorch

Repository files navigation

DeepPulse

PyTorch implementation of pulse measurement neural networks.

Python scripts to train and test different PPG calculating neural networks. Network architectures used in research:

Usage

To train or test network use appropriate script from listed below. PyTorch Dataloader and Dataset are prepared to work with sets containing waveform information from pulseoximeter. Scripts require lists of sequences to train and test the network. Sequences should be placed in <dataset>\<sequence_num> directory, where <dataset> should be set as root_dir = <dataset> in training and testing scripts.

Each image of the sequence should be cropped to only subjects face using utils\face_crop.py

HR-CNN

training script hr_cnn_train.py
validation script hr_cnn_valid.py
network implementation and global context block hr_cnn.py
network implementation using dilated convolution hr_cnn_dil.py

PhysNet 3D

training script PhysNet_train.py
validation script PhysNet_train.py
base network implementation PhysNet.py
network with GCBlock PhysNetGlobal.py
network implementation using dilated convolution PhysNetDil.py

Spatio-temporal PhysNet

training script PhysNet_train.py
validation script PhysNet_test.py
network implementation PhysNet_SpaTemp.py

GradCam

Script grad_cam.py contains function to visualise activation maps using GradCam method adapted to 3D convolution.

Data

Datasets used are acquired from:

Requirements

  • scipy
  • torch
  • opencv-python
  • torchvision
  • numpy
  • pandas

About

PyTorch implementation of pulse measurement neural networks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages