Conditional facial-expression editing & face resynthesis runtime (FaceEditor) on top of py-feat 2.0
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfeat_generator-0.1.1.tar.gz.
File metadata
- Download URL: pyfeat_generator-0.1.1.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e205000dfa737fdc0dd4d5a9beca26ab9c2232d1312519526f54ea31822e64db
|
|
| MD5 |
9be9e8f9c3959ce243bb2d871d0545f3
|
|
| BLAKE2b-256 |
cf7fba4e183028edfdb8552779d2a9b0095c5467aeecbda244665c035bfa0bb2
|
Provenance
The following attestation bundles were made for pyfeat_generator-0.1.1.tar.gz:
Publisher:
release.yml on cosanlab/pyfeat-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfeat_generator-0.1.1.tar.gz -
Subject digest:
e205000dfa737fdc0dd4d5a9beca26ab9c2232d1312519526f54ea31822e64db - Sigstore transparency entry: 2010911406
- Sigstore integration time:
-
Permalink:
cosanlab/pyfeat-generator@4b871a0f64cedf19f778ee02dbd2e1001e076dda -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/cosanlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b871a0f64cedf19f778ee02dbd2e1001e076dda -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyfeat_generator-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyfeat_generator-0.1.1-py3-none-any.whl
- Upload date:
- Size: 58.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7d374de335e60a1c34c22244025821eea5a7b3e175961043a41c8771fa5ab0a
|
|
| MD5 |
9bde9b842318822afac51675734d9923
|
|
| BLAKE2b-256 |
546bfc3af5b3a28201ec570b452cc781aead0d2fd331e2b46c9da6c6f939fe4a
|
Provenance
The following attestation bundles were made for pyfeat_generator-0.1.1-py3-none-any.whl:
Publisher:
release.yml on cosanlab/pyfeat-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfeat_generator-0.1.1-py3-none-any.whl -
Subject digest:
d7d374de335e60a1c34c22244025821eea5a7b3e175961043a41c8771fa5ab0a - Sigstore transparency entry: 2010911605
- Sigstore integration time:
-
Permalink:
cosanlab/pyfeat-generator@4b871a0f64cedf19f778ee02dbd2e1001e076dda -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/cosanlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b871a0f64cedf19f778ee02dbd2e1001e076dda -
Trigger Event:
release
-
Statement type: