adieyal / dynamicprompts

Templating language for generating prompts for text to image generators such as Stable Diffusion
MIT License
124 stars 20 forks source link

readme mistake? #120

Open lingondricka2 opened 9 months ago

lingondricka2 commented 9 months ago

In magic prompt usage:

generator = RandomPromptGenerator()
magic_generator = MagicPromptGenerator(
    generator,
    device=...,  # Torch device specifier (int, string, torch.device)
)

num_prompts = 5
generator.generate("I love {red|green|blue} roses", num_prompts)

Should be?

generator = RandomPromptGenerator()
magic_generator = MagicPromptGenerator(
    generator,
    device=...,  # Torch device specifier (int, string, torch.device)
)

num_prompts = 5
magic_generator.generate("I love {red|green|blue} roses", num_prompts)