diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-11-17 23:56:43 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-11-17 23:56:43 -0500 |
commit | bb4d634962cdf97affd041a81b12c3d2c8d46bf7 (patch) | |
tree | 292836d9377cd1e419811c4e0d1ef95bb2c1f43c /stable_diffusion.h | |
parent | c27530c79fd135c499a52b222e9cec16aa1951ad (diff) |
clipboard, simd, sd experiments
Diffstat (limited to 'stable_diffusion.h')
-rw-r--r-- | stable_diffusion.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/stable_diffusion.h b/stable_diffusion.h new file mode 100644 index 0000000..6e7dd54 --- /dev/null +++ b/stable_diffusion.h @@ -0,0 +1,25 @@ + + +// curl -X POST -H 'Content-Type: application/json' -i 'http://127.0.0.1:7860/sdapi/v1/txt2img' --data '{ +// "prompt": "cute dinosaur sticker with polka dots", +// "steps": 50, +// "sampler_index": "DDIM" +// }' + +#define SD_LEN_PROMPT 256 +#define SD_LEN_ADDRESS 128 + +struct sd_state +{ + char Prompt[256]; + char NegPrompt[256]; + char ServerAddress[128]; + int32 Steps = 25; + int32 Width = 512; + int32 Height = 512; + int32 SamplerIndex = 0; + real32 CFG = 7; + real32 DenoisingStrength = 0.7; + int32 Seed = -1; +}; + |