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.2.tar.gz (60.0 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.2-py3-none-any.whl (91.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psifx-0.2.2.tar.gz
  • Upload date:
  • Size: 60.0 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.2.tar.gz
Algorithm Hash digest
SHA256 a38a9806842d3fa8f2181154f5cbd99b06ad5104998ff21d3ff6372a6d4df83a
MD5 e9914cbb3c35660c42d2ccb3d9c24c42
BLAKE2b-256 96e5f409218e666a44697d45151795c5882dfdd2b3ea3bf3a74c243c46fbac3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for psifx-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: psifx-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 91.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8121c35d3e71d9cdab0d10f6620e103b1e8b592b1f11ac8afeeb4d41cc38985d
MD5 e72b28c7f74429f11a3edc7f9dcc228c
BLAKE2b-256 7be783f9f8e3194909a54d4a8a4956f0593c153c6586cae501f00f40491a3846

See more details on using hashes here.

Provenance

The following attestation bundles were made for psifx-0.2.2-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