Skip to main content

SeetaPsych Emotion

Facial affect/emotion recognition modules for SeetaPsych

Usage

This project is already included in the seetapsych-lib default configuration. Download and use it via seetapsych-manager download.

For usage, refer to SeetaPsych.

You can additionally add this algorithm module using the following methods.

WebUI

Run seetapsych-webui with the --dirs argument to use it.

seetapsych-webui --files seetapsych_emo/modules/ufanet.yml

Programmatic Usage

Add the following code in your program to use this algorithm module.

from seetapsych_lib.runtime.factory import Factory
from seetapsych_lib.runtime.pipeline import Pipeline

factory = Factory()
factory.load_file_modules('seetapsych_emo/modules/ufanet.yml')

pipeline = Pipeline(factory, ...)

pipeline.add_attributes('face/expression', 'face/action_units', 'face/dimensional_affect')

Introduction

UFANet (Unified Facial Affect Network)

PyTorch-based unified facial affect recognition model built on MAE-ViT-Backbone (mae_vit_base_patch16). Performs 5-point facial alignment and cropping, then simultaneously predicts categorical expressions, Action Units (AUs), and dimensional affect (valence/arousal).

Module config: ufanet.yml. Provide Attributes: face/expression, face/action_units, face/dimensional_affect.

Requires: face/landmarks (5-point facial landmarks for alignment and cropping).

Available model: seeta-emo-ufanet-2604.safetensors (recommended).

Output details:

  • face/expression: 7 basic expression classes with confidence scores — neutral, anger, disgust, fear, happy, sad, surprise.
  • face/action_units: 16 Facial Action Units with intensities — AU1, AU2, AU4, AU5, AU6, AU7, AU9, AU10, AU12, AU15, AU17, AU20, AU23, AU24, AU25, AU26.
  • face/dimensional_affect: Continuous valence and arousal values in a dict {valence: float, arousal: float}.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

seetapsych_emo-0.0.1-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file seetapsych_emo-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: seetapsych_emo-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for seetapsych_emo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 698dac1dd69019958c4f65f33d870646f583b829286af896efa0cce5d55c9d35
MD5 f1759bf86715e36c4eed2c4f83f73a50
BLAKE2b-256 1033ce4b52c3fab462b173e474cef85c2a8989a2069b14d435ef3ca0a0cbc4e8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.3.post1

2 files

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page