summaryrefslogtreecommitdiff
path: root/stable_diffusion.h
blob: febb8f6e2f0f4d23b79f0777866a94178169b28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


// 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_mode
// {
//     sd_mode_txt2txt,
//     sd_mode_txt2img
// }

struct sd_state
{
    bool32 Mode = 1;
    char Prompt[256];
    char NegPrompt[256];
    char ServerAddress[128];
    int32 Steps = 10;
    int32 Width = 384;
    int32 Height = 384;
    int32 SamplerIndex = 0;
    real32 CFG = 7;
    real32 DenoisingStrength = 0.8;
    int32 Seed = -1;
};