Instructions to use Hack337/flux-lora-Uni with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Hack337/flux-lora-Uni 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("Hack337/flux-lora-Uni") prompt = "uni laying in a cardboard box on the floor, with a blurred background" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files19 unmodified lines2021222324252627282930313224 unmodified lines575859606162636419 unmodified lines- text: uni sitting on a couch wearing a bright yellow scarf, The background is slightly blurred, giving the focus to the cat and its scarfoutput:url: images/image_00067_.png- text: >-a Komaru cat wearing a pink hat with ears, sitting on a wooden surface witha blurred backgroundoutput:url: images/hack337_00002_.pngbase_model: black-forest-labs/FLUX.1-devinstance_prompt: Komarulicense: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md24 unmodified linesimport torchpipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')pipeline.load_lora_weights('Hack337/flux-lora-Komaru', weight_name='komaru')image = pipeline('a Komaru cat sitting in a box of corn on top of a couch, with a white cloth draped over it').images[0]image.save("my_image.png")```19 unmodified lines202122232425262728293024 unmodified lines555657585960616219 unmodified lines- text: uni sitting on a couch wearing a bright yellow scarf, The background is slightly blurred, giving the focus to the cat and its scarfoutput:url: images/image_00067_.png- text: uni with its mouth open, yawning in a blue bagoutput:url: images/image_00068_.pngbase_model: black-forest-labs/FLUX.1-devinstance_prompt: Unilicense: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md24 unmodified linesimport torchpipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')pipeline.load_lora_weights('Hack337/flux-lora-Uni', weight_name='uni')image = pipeline('uni laying in a cardboard box on the floor, with a blurred background').images[0]image.save("my_image.png")```
README.md+5-7