Skip to main content

pyfeat-generator

Runtime for conditional facial-expression editing and face resynthesis — the FaceEditor / LiveEditSession API used by pyfeat-live, built on py-feat 2.0. Model weights are fetched from the py-feat HuggingFace org (py-feat/pyfeat-generator*).

MIT licensed.

Install

pip install pyfeat-generator

Pulls py-feat >= 2.0.3 and torch >= 2.12. Model weights download from the public py-feat HuggingFace org on first use (cached thereafter).

Device support

FaceEditor / LiveEditSession run on NVIDIA CUDA, Apple Silicon (MPS), and CPU. The rasterizer auto-selects a backend for the device; all three are parity-gated to byte-identical output, so results never depend on the machine.

Device Backend Notes
NVIDIA CUDA nvdiffrast Fastest. Optional — pip install nvdiffrast separately (needs the CUDA toolkit). Falls back to torch if absent.
Apple Silicon (MPS) metal Fused torch.mps.compile_shader kernel. Requires torch ≥ 2.12 (this package's floor); older torch falls back to torch.
CPU / other torch Pure-PyTorch, device-agnostic. Always works; slowest.

nvdiffrast is never imported off CUDA (the auto-selector guards it behind torch.cuda.is_available()), so it is not a dependency and is not needed on a Mac. Force a backend with the env var AU_RASTER_BACKEND=nvdiffrast|metal|torch.

Metadata

Release files for pyfeat-generator 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfeat-generator 0.1.1
File Size Uploaded Provenance
pyfeat_generator-0.1.1.tar.gz 42.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfeat-generator 0.1.1
File Interpreter ABI Platform
pyfeat_generator-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 100.6 kB

Release files / pyfeat_generator-0.1.1.tar.gz

Download URL pyfeat_generator-0.1.1.tar.gz
Size 42.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e205000dfa737fdc0dd4d5a9beca26ab9c2232d1312519526f54ea31822e64db
BLAKE2b-256 checksum
How to use checksums
cf7fba4e183028edfdb8552779d2a9b0095c5467aeecbda244665c035bfa0bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Release files / pyfeat_generator-0.1.1-py3-none-any.whl

Download URL pyfeat_generator-0.1.1-py3-none-any.whl
Size 58.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d374de335e60a1c34c22244025821eea5a7b3e175961043a41c8771fa5ab0a
BLAKE2b-256 checksum
How to use checksums
546bfc3af5b3a28201ec570b452cc781aead0d2fd331e2b46c9da6c6f939fe4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Security for pyfeat-generator 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyfeat_generator-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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