Instructions to use funseshon/trapped-bj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use funseshon/trapped-bj with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("funseshon/trapped-bj") prompt = "A majestic snow leopard leaping across a jagged Himalayan cliffside during a fierce blizzard, crystalline ice particles frozen in mid-air. TRAPPED_BJ" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from funseshon/trapped-bj: direct link, hf CLI and curl.
- Browser
- Download file 2.04 kB
-
https://huggingface.co/funseshon/trapped-bj/resolve/main/README.md
- Command line
-
hf download hf://funseshon/trapped-bj/README.md
-
curl -L -o README.md https://huggingface.co/funseshon/trapped-bj/resolve/main/README.md
2.04 kB
| base_model: krea/Krea-2-Raw | |
| tags: | |
| - text-to-image | |
| - diffusers | |
| - lora | |
| - krea2 | |
| - template:sd-lora | |
| license: apache-2.0 | |
| instance_prompt: "TRAPPED_BJ" | |
| widget: | |
| - text: "A majestic snow leopard leaping across a jagged Himalayan cliffside during a fierce blizzard, crystalline ice particles frozen in mid-air. TRAPPED_BJ" | |
| output: | |
| url: sample_0.png | |
| - text: "A sleek, neon-lit cyberpunk hovercar speeding down a rain-slicked Tokyo highway at midnight, reflecting vibrant magenta and teal lights. TRAPPED_BJ" | |
| output: | |
| url: sample_1.png | |
| - text: "An elderly clockmaker meticulously assembling a golden pocket watch in a dusty, sun-drenched attic filled with floating motes of light. TRAPPED_BJ" | |
| output: | |
| url: sample_2.png | |
| # Krea 2 LoRA — funseshon/trapped-bj | |
| <Gallery /> | |
| A DreamBooth-LoRA for **Krea 2**, trained on **Krea 2 RAW** and shown on **Krea 2 Turbo**. The samples below were generated with this LoRA on Turbo (8 steps). | |
| ## Trigger | |
| Use the phrase `TRAPPED_BJ` to invoke the concept. | |
| ## Samples | |
|  | |
| > *"A majestic snow leopard leaping across a jagged Himalayan cliffside during a fierce blizzard, crystalline ice particles frozen in mid-air. TRAPPED_BJ"* | |
|  | |
| > *"A sleek, neon-lit cyberpunk hovercar speeding down a rain-slicked Tokyo highway at midnight, reflecting vibrant magenta and teal lights. TRAPPED_BJ"* | |
|  | |
| > *"An elderly clockmaker meticulously assembling a golden pocket watch in a dusty, sun-drenched attic filled with floating motes of light. TRAPPED_BJ"* | |
| ## Use it with diffusers | |
| ```py | |
| import torch | |
| from diffusers import Krea2Pipeline | |
| pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda") | |
| pipe.load_lora_weights("funseshon/trapped-bj") | |
| image = pipe("A majestic snow leopard leaping across a jagged Himalayan cliffside during a fierce blizzard, crystalline ice particles frozen in mid-air. TRAPPED_BJ", num_inference_steps=8, guidance_scale=0.0).images[0] | |
| image.save("output.png") | |
| ``` | |