Run this model with HF Jobs

Run diffusers-internal-dev/ideogram-character-generator on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/diffusers-internal-dev/ideogram-character-generator. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/diffusers-internal-dev/ideogram-character-generator on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
File size: 1,235 Bytes
570fc47
 
 
 
6097fae
 
c37869d
570fc47
c37869d
570fc47
c37869d
570fc47
c37869d
 
 
570fc47
c37869d
 
570fc47
c37869d
 
19ba817
c37869d
e725839
c37869d
 
570fc47
c37869d
 
570fc47
c37869d
570fc47
c37869d
 
 
570fc47
c37869d
 
570fc47
 
c37869d
 
19ba817
c37869d
 
 
570fc47
 
19ba817
 
570fc47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
library_name: diffusers
---

## How to use

#### use ideogram-api to generate character using one input image 

Get your Ideogram API token from [here](https://developer.ideogram.ai/ideogram-api/api-overview)

Set it as the `IDEOGRAM_API_KEY` environment variable:

```py
from diffusers import ModularPipeline
from diffusers.utils import load_image

character_pipe = ModularPipeline.from_pretrained("diffusers-internal-dev/ideogram-character-generator", trust_remote_code=True)
print(character_pipe.doc)

image = character_pipe(
    prompt=(
        '''Youtube thumbnail of a women texting on iphone. Graphic overlay of text bubble "🤗"'''
    ),
    character_image=load_image(PATH_TO_IMAGE),
    output="image"
)

image.save("yiyi_character.png")
```

#### use with Flux Kontext

```
from diffusers import FluxKontextPipeline
import torch

pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16)
pipe.to("cuda")


image = pipe(
  image=image,
  prompt='''change the text to "when is next diffusers release?"''',
  guidance_scale=1.5
).images[0]
```



![image/png](https://cdn-uploads.huggingface.co/production/uploads/624ef9ba9d608e459387b34e/KlPwOQZDAkkJrNEfEcMsv.png)