Skip to main content

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. Optionalpip 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


Download files

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

Source Distribution

pyfeat_generator-0.1.1.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

pyfeat_generator-0.1.1-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

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

Hashes for pyfeat_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e205000dfa737fdc0dd4d5a9beca26ab9c2232d1312519526f54ea31822e64db
MD5 9be9e8f9c3959ce243bb2d871d0545f3
BLAKE2b-256 cf7fba4e183028edfdb8552779d2a9b0095c5467aeecbda244665c035bfa0bb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfeat_generator-0.1.1.tar.gz:

Publisher: release.yml on cosanlab/pyfeat-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfeat_generator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfeat_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d374de335e60a1c34c22244025821eea5a7b3e175961043a41c8771fa5ab0a
MD5 9bde9b842318822afac51675734d9923
BLAKE2b-256 546bfc3af5b3a28201ec570b452cc781aead0d2fd331e2b46c9da6c6f939fe4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfeat_generator-0.1.1-py3-none-any.whl:

Publisher: release.yml on cosanlab/pyfeat-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page