datasysdev/lora-test-2
08
1---2license: other3license_name: flux-1-dev-non-commercial-license4license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md5language:6- en7tags:8- flux9- diffusers10- lora11- replicate12base_model: "black-forest-labs/FLUX.1-dev"13pipeline_tag: text-to-image14# widget:15# - text: >-16# prompt17# output:18# url: https://...19instance_prompt: photo_teerak20---21 22# Lora Test 223 24<!-- <Gallery /> -->25 26Trained on Replicate using:27 28https://replicate.com/ostris/flux-dev-lora-trainer/train29 30 31## Trigger words32You should use `photo_teerak` to trigger the image generation.33 34 35## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)36 37```py38from diffusers import AutoPipelineForText2Image39import torch40 41pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')42pipeline.load_lora_weights('datasysdev/lora-test-2', weight_name='lora.safetensors')43image = pipeline('your prompt').images[0]44```45 46For 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)47 