Skip to main content

Flux backend for Deforum

Project description

Deforum Flux Backend

Flux backend for Deforum using Black Forest Labs Flux. This package includes code from Black Forest Labs Flux to enable PyPI installation.

Installation

Install PyTorch with CUDA 12.8 support first:

# Install PyTorch with CUDA 12.8 (required for RTX 50 series)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

# Then install deforum-flux
pip install deforum-flux

# Optional: For TensorRT acceleration
pip install deforum-flux[tensorrt]

Note: RTX 50 series cards require CUDA 12.8.

Development Installation

# Clone the repository
git clone https://github.com/deforum/flux.git
cd flux

# Install PyTorch with CUDA 12.8
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

# Install in development mode
pip install -e .

# Optional: Install with TensorRT support
pip install -e .[tensorrt]

Publish

python -m build
python -m twine upload dist/*

License

This package includes code from multiple sources:

  • Deforum Flux Backend (wrapper code): MIT License
  • Black Forest Labs Flux (core implementation): Apache 2.0 License
  • FLUX.1-schnell model: Apache 2.0 License (commercial use allowed)
  • FLUX.1-dev model: Non-commercial license (no commercial use)

⚠️ Important: If you use the FLUX.1-dev model, you are bound by its non-commercial license terms. See src/flux/LICENSE-FLUX1-dev.md for details.

For commercial applications, use only the FLUX.1-schnell model.

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

deforum_flux-0.1.3.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

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

deforum_flux-0.1.3-py3-none-any.whl (80.0 kB view details)

Uploaded Python 3

File details

Details for the file deforum_flux-0.1.3.tar.gz.

File metadata

  • Download URL: deforum_flux-0.1.3.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for deforum_flux-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e7a2cb354216d65e0afcede45303f3634085d1e0d3778884214f40a03ba0d1b2
MD5 e7f0fe8520a5f33a7a2efbcae44faa13
BLAKE2b-256 0f184645f47f37afb1c572be31336705a38c4779850f1c6617a45a6a177e66d9

See more details on using hashes here.

File details

Details for the file deforum_flux-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: deforum_flux-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 80.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for deforum_flux-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37986b6157a8aa273617ff8893895dd0a25730ee572ac6e0a40bd08a9d14f160
MD5 5727e740b4d4cd57329d9b5f5557964c
BLAKE2b-256 013135cf517d20d669e695277fb68870528e44109905dfbfe21d3c3ffe812077

See more details on using hashes here.

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