Skip to main content

Psychological and Social Interactions Feature Extraction

Project description

psifx - Psychological and Social Interactions Feature eXtraction


psifx is a "plug-and-play" multi-modal feature extraction toolkit, aiming to facilitate and democratize the use of state-of-the-art machine learning techniques for human sciences research. It is motivated by a need (a) to automate and standardize data annotation processes, otherwise involving expensive, lengthy, and inconsistent human labor, such as the transcription or coding of behavior changes from audio and video sources; (b) to develop and distribute open-source community-driven psychology research software; (c) to enable large-scale access and ease of use to non-expert users. The framework contains an array of tools for tasks, such as speaker diarization, closed-caption transcription and translation from audio, as well as body, hand, and facial pose estimation and gaze tracking from video. The package has been designed with a modular and task-oriented approach, enabling the community to add or update new tools easily. We strongly hope that this package will provide psychologists a simple and practical solution for efficiently a range of audio, linguistic, and visual features from audio and video, thereby creating new opportunities for in-depth study of real-time behavioral phenomena.

https://github.com/user-attachments/assets/263affe8-f435-42ee-84c9-cabc1f19efde

This demo clip is not intended for commercial use, and is solely for demonstration in an academic or research context.

Documentation, Reference & Quickstart

Visit https://psifx.github.io/psifx/

arXiv preprint: https://www.arxiv.org/abs/2407.10266```

Setup Instructions for psifx with Local SAM3 Model```

1. Clone the SAM3 Model Locally

git clone https://huggingface.co/facebook/sam3

Note: Facebook requires ethical approval to download or access the model online. Creating a local copy avoids this requirement and is the simplest solution.

2. Clone the psifx Repository

git clone https://github.com/BogdanvL/psifx.git

3. Configure SAM3 Path

Edit the following file:

/psifx/utils/constants.py

Update the SAM3_PATH variable to point to your local SAM3 directory:

SAM3_PATH = "/home/[user_name]/path/to/sam3"

The default value is:

SAM3_PATH = "facebook/sam3"

This requires automatic authorization via Hugging Face.

4. Install System Dependencies

sudo apt install ffmpeg ubuntu-restricted-extras

5. Create and Activate Conda Environment

conda create -y -n psifx-env python=3.11 pip
conda activate psifx-env

6. Install psifx

cd /home/[user_name]/psifx
pip install .

Project details


Download files

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

Source Distribution

psifx-0.2.1.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

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

psifx-0.2.1-py3-none-any.whl (89.0 kB view details)

Uploaded Python 3

File details

Details for the file psifx-0.2.1.tar.gz.

File metadata

  • Download URL: psifx-0.2.1.tar.gz
  • Upload date:
  • Size: 58.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for psifx-0.2.1.tar.gz
Algorithm Hash digest
SHA256 768308bd5405ae19449081fe2a9e3aea1a8e78cd26b303cd4bdaba1520dc21d1
MD5 20c0fac8e159f0a88fd3bf705a2a6082
BLAKE2b-256 cd0d80a831ddc2455f4941db6c6f597b21ff23ddf2c1ec5a6532bd896f36f395

See more details on using hashes here.

Provenance

The following attestation bundles were made for psifx-0.2.1.tar.gz:

Publisher: build-and-publish-pypi.yml on psifx/psifx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file psifx-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: psifx-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 89.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for psifx-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05e32ea26755e51d55b8d84e038c344d8d674478315e1f090aee4f478ae65b2b
MD5 7fce32481cd0dfbd612c587d5374477e
BLAKE2b-256 5b7069418f62e2b92539d5ca184718cb5cf2750581f9066309996235c36536e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for psifx-0.2.1-py3-none-any.whl:

Publisher: build-and-publish-pypi.yml on psifx/psifx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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