Skip to content

CreateGenerationRequestBody simple working examples #5

Closed
@munirjojoverge

Description

@munirjojoverge

It would be ideal to show a few small and simple examples with proper parameter settings to generate requests such:

  1. with alchemy=True and what set of other parameters need to be set together and what values/ranges.
  2. with prompt_magic=True. Same as above.

For example this DOES NOT WORK and it's not clear why:
req = operations.CreateGenerationRequestBody(
alchemy=True,
contrast_ratio=0.5,
expanded_domain=False,
guidance_scale=8,
height=self.cfg.height,
model_id='d69c8273-6b17-4a30-a13e-d6637ae1c644',
num_images=1,
num_inference_steps=self.cfg.num_inference_steps,
preset_style=shared.SdGenerationStyle.DYNAMIC,
prompt=prompt,
public=False,
width=self.cfg.width,
)

In a very similar fashion if we try prompt_magic=True, using
high_contrast = True,
high_resolution= False,
prompt_magic = True,
prompt_magic_version='v3'

Things fail and it's not clear at all why.

Could anyone help by just posting a simple working example, please

All the best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions