You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This model is derived from py-feat's multitask model (face_multitask_v28, designated by its authors for noncommercial research) and from ConvNeXt-V2 ImageNet weights (CC BY-NC 4.0), and was trained on research corpora (it tokenizes features from fujielab-fer-nano, a distilled student of that model; trained on MHHS, NoXi, Hazumi and Seamless Interaction). It is provided for non-commercial research purposes only, on condition that publications using it cite the fujielab-fer GitHub repository (https://github.com/fujielab/fujielab-fer) and py-feat. Commercial use is not permitted. Requests are reviewed manually. 本モデルは研究目的に限って提供します(商業利用は不可)。研究成果を発表する際は、fujielab-fer の GitHub リポジトリと py-feat を引用してください。申請は手動で確認します。

Log in or Sign Up to review the conditions and access this model content.

fujielab-fer-facecodec-n

A causal tokenizer of facial behavior (12.5 Hz) to feed multimodal spoken-dialogue models such as VAP (Voice Activity Projection). Use it through fujielab_fer.dialogue of fujielab-fer (pip install fujielab-fer).

Online demo: try it in your browser (Hugging Face Space, webcam; check "Tokenizer" to show the encoding and decoding).

音声対話のモデル(マルチモーダルの VAP など)に入れるための、顔の振る舞いの因果的なトークナイザ(12.5 Hz)です。研究目的(非商用)に限って提供します。

Input and output

  • Input: the 25 Hz dialogue features of fujielab-fer (emotion 7, VA 2, AU 20, blendshapes 52, head rotation 3, gaze 2 = 86 dims; base model nano), normalized with statistics balanced across corpora, minus a causal baseline (exponential moving average with τ = 60 s). Frames without a face are 0.
  • Output: 12.5 Hz tokens (residual vector quantization, 8 x 256, 800 bps; the first codebooks alone also work: 200 bps with 2), the quantized latent (128 dims), and features decoded from the tokens (25 Hz, 86 dims).
  • Fully causal (only past frames). Real-time processing (tok.stream()) gives the same tokens as the offline encode.

Usage

After your access request is approved, log in with hf auth login. The base expression model must be fujielab-fer-nano (request access to it too).

from fujielab_fer import FaceExpressionRecognizer
from fujielab_fer.dialogue import FaceTokenizer, extract_video

fer = FaceExpressionRecognizer(weights="fujielab/fujielab-fer-nano")   # the base model must be nano
tr = extract_video("talk.mp4", fer, model="n")                         # 25 Hz: tr.z [T,86], tr.valid [T]
tok = FaceTokenizer.load("fujielab/fujielab-fer-facecodec-n")
enc = tok.encode(tr.z, tr.valid)                                       # enc.codes [T/2, 8], enc.latent [T/2, 128]
rec = tok.decode(enc.codes[:, :2])                                     # decode from fewer codebooks -> [T, 86]
fujielab-fer-dialogue talk.mp4 -o talk.npz --model n --codec fujielab/fujielab-fer-facecodec-n

Model

Item Value
Architecture causal convolution (stride 2) -> causal Transformer (ALiBi) -> RVQ (8 x 256) -> causal decoder
Parameters 8.9M
Weights model.safetensors (architecture and the normalization statistics used in training in the metadata config), config.json

Evaluation (speakers not seen in training)

Test data: 313 sessions of MHHS, NoXi, Hazumi and Seamless Interaction, split by speaker.

  • Own decoding: correlation between the decoded features and the input (baseline-subtracted), mean over 86 dims
  • Linear reconstruction: correlation of a linear reconstruction of the features without baseline subtraction from the latent
  • Identity: speaker identification accuracy from the mean and standard deviation over 2 s windows (MHHS 12 speakers, chance 8.3%; Seamless 97 speakers, chance 1.0%)
Features Own decoding r Linear reconstruction r Speaker MHHS % Speaker Seamless %
features as is – 0.942 90.8 88.6
baseline subtracted (τ = 60 s) – 0.658 16.4 13.8
this model (8 codebooks, 800 bps) 0.899 0.569 42.2 12.7
this model (2 codebooks, 200 bps) 0.839 0.520 41.1 12.8

Identity is reduced mainly by the baseline subtraction. Adversarial speaker training (gradient reversal, confusion) did not reduce leakage on unseen speakers and hurt decoding, so it is not used. MHHS has few speakers and its numbers are noisy.

Training

  • Data: MHHS (our in-house dialogue corpus), NoXi, Hazumi and Seamless Interaction (2,760 sessions, 205.7 hours).
  • Loss: L1 of the decoded features on frames with a face + commitment (0.25). The number of codebooks is drawn from 1-8 at each step (so that the first codebooks alone can decode). Window 250 frames (10 s), batch 64, AdamW (lr 5e-4), 60,000 steps.

License and terms

  • Non-commercial research use only. Access is gated; do not redistribute the files.
  • It inherits the terms of the base expression models (py-feat face_multitask_v2 and its distilled student fujielab-fer-nano, see their cards) and of the training corpora (MHHS, NoXi, Hazumi, Seamless Interaction (CC BY-NC 4.0)).
  • The base model is nano; features from the teacher (py-feat v28) do not match the normalization statistics.
  • Author: Shinya Fujie (Fujie Laboratory, Chiba Institute of Technology; shinya.fujie@chibatech.ac.jp), 2026-10-08.
Downloads last month
-
Safetensors
Model size
8.93M params
Tensor type
F32
·
BOOL
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using fujielab/fujielab-fer-facecodec-n 1

Collection including fujielab/fujielab-fer-facecodec-n