Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateGenerationRequestBody simple working examples #5

Open
munirjojoverge opened this issue Sep 10, 2023 · 1 comment
Open

CreateGenerationRequestBody simple working examples #5

munirjojoverge opened this issue Sep 10, 2023 · 1 comment

Comments

@munirjojoverge
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants