IsaacRnrf/emma_sharp
09
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: Emma-Sharp20---21 22# Emma_Sharp23 24<Gallery />25 26## About this LoRA27 28This is a [LoRA](https://replicate.com/docs/guides/working-with-loras) for the FLUX.1-dev text-to-image model. It can be used with diffusers or ComfyUI.29 30It was trained on [Replicate](https://replicate.com/) using AI toolkit: https://replicate.com/ostris/flux-dev-lora-trainer/train31 32 33## Trigger words34 35You should use `Emma-Sharp` to trigger the image generation.36 37 38## Run this LoRA with an API using Replicate39 40```py41import replicate42 43input = {44 "prompt": "Emma-Sharp",45 "lora_weights": "https://huggingface.co/IsaacRnrf/emma_sharp/resolve/main/lora.safetensors"46}47 48output = replicate.run(49 "black-forest-labs/flux-dev-lora",50 input=input51)52for index, item in enumerate(output):53 with open(f"output_{index}.webp", "wb") as file:54 file.write(item.read())55```56 57## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)58 59```py60from diffusers import AutoPipelineForText2Image61import torch62 63pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')64pipeline.load_lora_weights('IsaacRnrf/emma_sharp', weight_name='lora.safetensors')65image = pipeline('Emma-Sharp').images[0]66```67 68For 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)69 70 71## Training details72 73- Steps: 200074- Learning rate: 0.000475- LoRA rank: 1676 77 78## Contribute your own examples79 80You can use the [community tab](https://huggingface.co/IsaacRnrf/emma_sharp/discussions) to add images that show off what you’ve made with this LoRA.81 