Leonardo-Interactive / leonardo-python-sdk

MIT License
17 stars 6 forks source link

CreateGenerationRequestBody simple working examples #5

Open munirjojoverge opened 1 year ago

munirjojoverge commented 1 year ago

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

impactcolor commented 1 year ago

Same here, I still haven't figured out why it doesn't work.