Instructions to use pixelpoet/TFD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pixelpoet/TFD with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("pixelpoet/TFD") prompt = "TFD" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (3)
- README.mdAdded+46
- config.yamlAdded+60
- lora.safetensorsAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546---license: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.mdlanguage:- entags:- flux- diffusers- lora- replicatebase_model: "black-forest-labs/FLUX.1-dev"pipeline_tag: text-to-image# widget:# - text: >-# prompt# output:# url: https://...instance_prompt: TFD---
# Tfd
<Gallery />
Trained on Replicate using:
https://replicate.com/ostris/flux-dev-lora-trainer/train
## Trigger wordsYou should use `TFD` to trigger the image generation.
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
```pyfrom diffusers import AutoPipelineForText2Imageimport torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')pipeline.load_lora_weights('pixelpoet/TFD', weight_name='lora.safetensors')image = pipeline('your prompt').images[0]```
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960job: custom_jobconfig: name: flux_train_replicate process: - type: custom_sd_trainer training_folder: output device: cuda:0 trigger_word: TFD network: type: lora linear: 16 linear_alpha: 16 save: dtype: float16 save_every: 1001 max_step_saves_to_keep: 1 datasets: - folder_path: input_images caption_ext: txt caption_dropout_rate: 0.05 shuffle_tokens: false cache_latents_to_disk: false cache_latents: true resolution: - 512 - 768 - 1024 train: batch_size: 1 steps: 1000 gradient_accumulation_steps: 1 train_unet: true train_text_encoder: false content_or_style: balanced gradient_checkpointing: true noise_scheduler: flowmatch optimizer: adamw8bit lr: 0.0004 ema_config: use_ema: true ema_decay: 0.99 dtype: bf16 model: name_or_path: FLUX.1-dev is_flux: true quantize: true sample: sampler: flowmatch sample_every: 1001 width: 1024 height: 1024 prompts: [] neg: '' seed: 42 walk_seed: true guidance_scale: 3.5 sample_steps: 28meta: name: flux_train_replicate version: '1.0'123version https://git-lfs.github.com/spec/v1oid sha256:9c559b6ade5697ba348b6c7d47a1674f744d5c932ee8c9fc48be4cacfc5775d0size 171969416README.mdAdded+46
config.yamlAdded+60
lora.safetensorsAdded+3