This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download FluxCFGPipline | |
!wget https://raw.githubusercontent.com/linoytsaban/diffusers/refs/heads/dreambooth-lora-flux-exploration/examples/community/pipeline_flux_with_cfg.py | |
# load pipeline | |
import diffusers | |
import torch | |
from pipeline_flux_with_cfg import FluxCFGPipeline | |
pipe = FluxCFGPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", | |
torch_dtype=torch.bfloat16) |