Instructions to use ilkerzgi/krea-2-azure-sunlit-storybook-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ilkerzgi/krea-2-azure-sunlit-storybook-lora 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-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ilkerzgi/krea-2-azure-sunlit-storybook-lora") prompt = "a city skyline at night. azure sunlit storybook style" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| language: | |
| - en | |
| base_model: | |
| - krea/Krea-2-Turbo | |
| pipeline_tag: text-to-image | |
| library_name: diffusers | |
| license: other | |
| license_name: krea-2-community-license | |
| license_link: https://huggingface.co/krea/Krea-2-LoRA-impressionist/blob/main/LICENSE.pdf | |
| instance_prompt: azure sunlit storybook style | |
| tags: | |
| - lora | |
| - text-to-image | |
| - krea | |
| - krea-2 | |
| - fal-ai | |
| - template:diffusion-lora | |
| - illustration | |
| widget: | |
| - text: "a city skyline at night. azure sunlit storybook style" | |
| output: | |
| url: images/ex_1.png | |
| - text: "a quiet forest path in autumn. azure sunlit storybook style" | |
| output: | |
| url: images/ex_2.png | |
| - text: "a red fox in tall grass. azure sunlit storybook style" | |
| output: | |
| url: images/ex_3.png | |
| - text: "a sailboat on a calm sea. azure sunlit storybook style" | |
| output: | |
| url: images/ex_4.png | |
| - text: "a lighthouse on a rocky cliff. azure sunlit storybook style" | |
| output: | |
| url: images/ex_5.png | |
| - text: "a still life of fruit and a vase. azure sunlit storybook style" | |
| output: | |
| url: images/ex_6.png | |
| <picture> | |
| <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/ilkerzgi/krea-2-azure-sunlit-storybook-lora/resolve/main/fal-dark.png"> | |
| <img src="https://huggingface.co/ilkerzgi/krea-2-azure-sunlit-storybook-lora/resolve/main/fal-light.png" alt="fal" height="18"> | |
| </picture> | |
| # Azure Sunlit Storybook | |
| **fal · Krea 2 Style LoRA series.** One of 1600+ style LoRAs trained on [fal](https://fal.ai). | |
| A **Krea 2** style LoRA. Add the trigger **`azure sunlit storybook style`** to the end of your prompt. | |
| [](https://fal.ai/models/fal-ai/krea-2/turbo/lora) [](https://fal.ai/models/fal-ai/krea-2-trainer) [](https://huggingface.co/krea/Krea-2-Turbo) | |
| <Gallery /> | |
| ## Quick start | |
| | Parameter | Value | | |
| |-----------|-------| | |
| | Trigger | `azure sunlit storybook style` | | |
| | Recommended LoRA scale | `1.0` to `1.25` | | |
| | Base model | `krea/Krea-2-Turbo` | | |
| | Trained on | [fal-ai/krea-2-trainer](https://fal.ai/models/fal-ai/krea-2-trainer) | | |
| ## Inference on fal | |
| ### Python | |
| ```python | |
| import fal_client | |
| result = fal_client.subscribe( | |
| "fal-ai/krea-2/turbo/lora", | |
| arguments={ | |
| "prompt": "a lighthouse on a rocky cliff. azure sunlit storybook style", | |
| "loras": [{"path": "https://huggingface.co/ilkerzgi/krea-2-azure-sunlit-storybook-lora/resolve/main/azure-sunlit-storybook.safetensors", "scale": 1.0}], | |
| "image_size": {"width": 1024, "height": 1280}, | |
| }, | |
| ) | |
| print(result["images"][0]["url"]) | |
| ``` | |
| ### JavaScript | |
| ```js | |
| import { fal } from "@fal-ai/client"; | |
| const { data } = await fal.subscribe("fal-ai/krea-2/turbo/lora", { | |
| input: { | |
| prompt: "a lighthouse on a rocky cliff. azure sunlit storybook style", | |
| loras: [{ path: "https://huggingface.co/ilkerzgi/krea-2-azure-sunlit-storybook-lora/resolve/main/azure-sunlit-storybook.safetensors", scale: 1.0 }], | |
| image_size: { width: 1024, height: 1280 }, | |
| }, | |
| }); | |
| console.log(data.images[0].url); | |
| ``` | |
| ## Train your own on fal | |
| Every LoRA in this series is trained on [`fal-ai/krea-2-trainer`](https://fal.ai/models/fal-ai/krea-2-trainer) (100 steps, learning rate 3.5e-4). Train your own style from 4 to 10 reference images: | |
| ```python | |
| import fal_client | |
| result = fal_client.subscribe( | |
| "fal-ai/krea-2-trainer", | |
| arguments={ | |
| "images_data_url": "https://.../your-dataset.zip", | |
| "trigger_phrase": "azure sunlit storybook style", | |
| "steps": 100, | |
| "learning_rate": 0.00035, | |
| }, | |
| ) | |
| print(result) | |
| ``` | |
| ## License | |
| Krea 2 Community License. See the [license](https://huggingface.co/krea/Krea-2-LoRA-impressionist/blob/main/LICENSE.pdf). | |