Instructions to use Yofardev/kiki_ideogram4_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Yofardev/kiki_ideogram4_v1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ideogram-ai/ideogram-4-fp8", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Yofardev/kiki_ideogram4_v1") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse files- .gitattributes +8 -0
- README.md +75 -0
- kiki_ideogram4_v1.safetensors +3 -0
- sample_01.png +3 -0
- sample_02.png +3 -0
- sample_03.png +3 -0
- sample_04.png +3 -0
- sample_05.png +3 -0
- sample_06.png +3 -0
- sample_07.png +3 -0
- sample_08.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
sample_01.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
sample_02.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
sample_03.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
sample_04.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
sample_05.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
sample_06.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
sample_07.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
sample_08.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: ideogram-community
|
| 4 |
+
license_link: https://huggingface.co/ideogram-ai/ideogram-4-fp8/blob/main/LICENSE
|
| 5 |
+
base_model:
|
| 6 |
+
- ideogram-ai/ideogram-4-fp8
|
| 7 |
+
tags:
|
| 8 |
+
- ideogram
|
| 9 |
+
- ideogram-4
|
| 10 |
+
- lora
|
| 11 |
+
- lokr
|
| 12 |
+
- text-to-image
|
| 13 |
+
- style
|
| 14 |
+
library_name: diffusers
|
| 15 |
+
pipeline_tag: text-to-image
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Kiki Ideogram4 v1
|
| 19 |
+
|
| 20 |
+
LoRA (lokr) adapter trained on **Ideogram 4** (`ideogram-ai/ideogram-4-fp8`) for a **Studio Ghibli style**.
|
| 21 |
+
|
| 22 |
+
## Trigger word
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
Studio Ghibli style
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Use it in the prompt, e.g. `Studio Ghibli style, a quiet mountain village at dawn`.
|
| 29 |
+
|
| 30 |
+
## Specifications
|
| 31 |
+
|
| 32 |
+
| | |
|
| 33 |
+
|---|---|
|
| 34 |
+
| Base model | `ideogram-ai/ideogram-4-fp8` |
|
| 35 |
+
| Architecture | ideogram4 |
|
| 36 |
+
| Network | lokr (linear 32, alpha 32, factor 8, full rank) |
|
| 37 |
+
| Training steps | 5000 |
|
| 38 |
+
| Resolution | 512 / 768 / 1024 |
|
| 39 |
+
| Optimizer | automagic3 |
|
| 40 |
+
| Learning rate | 1e-5 |
|
| 41 |
+
| dtype | bf16 |
|
| 42 |
+
|
| 43 |
+
## Usage (Diffusers)
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
import torch
|
| 47 |
+
from diffusers import DiffusionPipeline
|
| 48 |
+
|
| 49 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 50 |
+
"ideogram-ai/ideogram-4-fp8",
|
| 51 |
+
torch_dtype=torch.bfloat16,
|
| 52 |
+
).to("cuda")
|
| 53 |
+
|
| 54 |
+
pipe.load_lora_weights("Yofardev/kiki_ideogram4_v1")
|
| 55 |
+
|
| 56 |
+
image = pipe(
|
| 57 |
+
"Studio Ghibli style, a quiet mountain village at dawn",
|
| 58 |
+
guidance_scale=4.0,
|
| 59 |
+
num_inference_steps=30,
|
| 60 |
+
).images[0]
|
| 61 |
+
image.save("out.png")
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Recommended settings: guidance scale `4`, steps `30`, 1024×1024.
|
| 65 |
+
|
| 66 |
+
## Samples
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+

|
| 70 |
+

|
| 71 |
+

|
| 72 |
+

|
| 73 |
+

|
| 74 |
+

|
| 75 |
+

|
kiki_ideogram4_v1.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:598b9ca7fc7d3de16750a8bb0f7bbb9ea97c5554c853d035bf0d7b24d24deb93
|
| 3 |
+
size 280855400
|
sample_01.png
ADDED
|
Git LFS Details
|
sample_02.png
ADDED
|
Git LFS Details
|
sample_03.png
ADDED
|
Git LFS Details
|
sample_04.png
ADDED
|
Git LFS Details
|
sample_05.png
ADDED
|
Git LFS Details
|
sample_06.png
ADDED
|
Git LFS Details
|
sample_07.png
ADDED
|
Git LFS Details
|
sample_08.png
ADDED
|
Git LFS Details
|