fujielab-fer
Copyright 2026 Shinya Fujie, Fujie Laboratory, Chiba Institute of Technology

The source code in this repository is licensed under the Apache License 2.0
(see LICENSE). This notice lists third-party code included in it and
third-party pretrained models that it downloads at run time. The models are
NOT covered by the Apache License 2.0.


Third-party code
================

src/fujielab_fer/_pyfeat_v2.py contains a model definition adapted from
py-feat 2.1.3 (https://github.com/cosanlab/py-feat), licensed under the MIT
License:

    MIT License

    Copyright (c) 2022, Jin Hyun Cheong, Tiankang Xie, Sophie Byrne, Eshin Jolly, Luke Chang

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to permit
    persons to whom the Software is furnished to do so, subject to the
    following conditions:

    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
    NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
    DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
    OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
    USE OR OTHER DEALINGS IN THE SOFTWARE.

The face-detector pre/post-processing in src/fujielab_fer/detector.py follows
InsightFace's SCRFD implementation (https://github.com/deepinsight/insightface,
MIT License for the code).


Pretrained models downloaded at run time (not included, not Apache-2.0)
=======================================================================

- py-feat multitask model `face_multitask_v28.safetensors`
  (https://huggingface.co/py-feat/face_multitask_v2): designated by its
  authors for noncommercial research. Its backbone was initialized from
  ConvNeXt-V2 ImageNet weights licensed CC BY-NC 4.0, and some of its training
  datasets carry express restrictions on models trained on them. See the
  model's LICENSE and https://github.com/cosanlab/py-feat/tree/main/LICENSES.
- InsightFace SCRFD face detector (`buffalo_l/det_10g.onnx`,
  https://github.com/deepinsight/insightface): the pretrained models are for
  noncommercial research only.
- fujielab models (https://huggingface.co/fujielab, `fujielab-fer-*`): distilled
  from the py-feat model above and/or trained on research datasets; for
  noncommercial research only. See each model card.

Using these models is subject to their own terms, which you must check and
accept before use.
