Skip to content

deforum/flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Deforum Flux Backend wrapper: MIT License
  • Flux code: Apache 2.0 License (see src/flux/LICENSE)
  • FLUX.1-schnell model: See src/flux/LICENSE-FLUX1-schnell.md
  • FLUX.1-dev model: See src/flux/LICENSE-FLUX1-dev.md

Important: The FLUX.1-dev model has a non-commercial license. Check the license files before using in commercial applications.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages