forked from Haidra-Org/AI-Horde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcliRequestsData_template.py
38 lines (38 loc) · 1.55 KB
/
cliRequestsData_template.py
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
33
34
35
36
37
38
filename = "horde_generation.png"
api_key = "0000000000"
source_image = None
# You can fill these in to avoid putting them as args all the time
imgen_params = {
"n": 1,
"width": 64*8,
"height":64*8,
"steps": 30,
"denoising_strength": 0.6,
"sampler_name": "k_euler",
"cfg_scale": 7.5,
"karras": True,
# Uncomment the below line to pass a specific seed
# "seed": "the little seed that could",
# You can put extra SD webui params here if you wish
}
submit_dict = {
# "prompt": "a swarm of incredibly cute stable robots, intricate, highly detailed, artstation, concept art, smooth, sharp focus, colorful scene, in the style of don bluth, greg rutkowski, disney, and hans zatzka",
"prompt": "grinning wild west outlaw walking towards the camera, gunbelt, detailed face, explosion in background",
"nsfw": False,
"censor_nsfw": False,
"trusted_workers": False,
# Put the models you allow to fulfil your request in reverse order of priority. The last model in this list is the most likely to be chosen
"models": [
"stable_diffusion",
# "waifu_diffusion",
# "Yiffy",
# "trinart",
]
}
# Uncomment this line to try img2img
# Change the filename to your own image
# source_image = './db0.jpg'
# Uncomment these three lines to try inpainting. If the source_mask is not provided, the image sent has to have areas already erased-to-alpha
# source_image = './inpaint_original.png'
# source_processing = 'inpainting'
# source_mask = './inpaint_mask.png'