NoobAIXL settings
This commit is contained in:
parent
689cd1244c
commit
8beb7fe2a7
@ -14,6 +14,14 @@ Detailed Prompting Guide:
|
|||||||
- Sampler: Works well with DPM++ 2M SDE.
|
- Sampler: Works well with DPM++ 2M SDE.
|
||||||
"""
|
"""
|
||||||
"Resolution Set" = "sdxl"
|
"Resolution Set" = "sdxl"
|
||||||
"CFG Scale" = 6.0
|
"CFG Scale" = 4.0
|
||||||
"Sampling Steps" = 28
|
"Hires. fix" = true
|
||||||
"Sampling Method" = "DPM++ 2M SDE"
|
"Denoising strength" = 0.5
|
||||||
|
"Upscale by" = 1.5
|
||||||
|
"Upscaler" = "Lanczos"
|
||||||
|
"Hires steps" = 16
|
||||||
|
"Hires CFG Scale" = 4.0
|
||||||
|
"Sampling Steps" = 32
|
||||||
|
"Sampling Method" = "Euler a"
|
||||||
|
"Schedule Type" = "Uniform"
|
||||||
|
"Rescale CFG" = 0.3
|
||||||
|
|||||||
@ -148,10 +148,7 @@ TOOL_REGISTRY = [
|
|||||||
"prompt": {"type": "string", "description": "The prompt for the image. Required."},
|
"prompt": {"type": "string", "description": "The prompt for the image. Required."},
|
||||||
"negative_prompt": {"type": "string", "description": "The negative prompt to exclude unwanted elements."},
|
"negative_prompt": {"type": "string", "description": "The negative prompt to exclude unwanted elements."},
|
||||||
"resolution_preset": {"type": "string", "description": "A named resolution preset (e.g., 'square', 'portrait'). Available options depend on the model."},
|
"resolution_preset": {"type": "string", "description": "A named resolution preset (e.g., 'square', 'portrait'). Available options depend on the model."},
|
||||||
"steps": {"type": "integer", "description": "Number of sampling steps."},
|
|
||||||
"cfg_scale": {"type": "number", "description": "CFG scale for prompt adherence."},
|
"cfg_scale": {"type": "number", "description": "CFG scale for prompt adherence."},
|
||||||
"seed": {"type": "number", "description": "Random seed for reproducibility. Use -1 for random."},
|
|
||||||
"sampler": {"type": "string", "description": "The sampling method to use."},
|
|
||||||
},
|
},
|
||||||
"required": ["model_name", "prompt"],
|
"required": ["model_name", "prompt"],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -92,10 +92,7 @@ async def handle(args: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|||||||
overrides = {
|
overrides = {
|
||||||
"prompt": "Prompt",
|
"prompt": "Prompt",
|
||||||
"negative_prompt": "Negative Prompt",
|
"negative_prompt": "Negative Prompt",
|
||||||
"steps": "Sampling Steps",
|
|
||||||
"cfg_scale": "CFG Scale",
|
"cfg_scale": "CFG Scale",
|
||||||
"seed": "Seed",
|
|
||||||
"sampler": "Sampling Method"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg_key, label in overrides.items():
|
for arg_key, label in overrides.items():
|
||||||
@ -105,13 +102,16 @@ async def handle(args: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|||||||
if "Prompt" in label_map:
|
if "Prompt" in label_map:
|
||||||
payload[label_map["Prompt"]] = prompt
|
payload[label_map["Prompt"]] = prompt
|
||||||
|
|
||||||
|
if "Seed" in label_map:
|
||||||
|
payload[label_map["Seed"]] = -1
|
||||||
|
|
||||||
for _ in range(7):
|
for _ in range(7):
|
||||||
payload.insert(39, None)
|
payload.insert(39, None)
|
||||||
|
|
||||||
# 6. EXECUTE GENERATION
|
# 6. EXECUTE GENERATION
|
||||||
try:
|
try:
|
||||||
gen_payload = {"data": payload}
|
gen_payload = {"data": payload}
|
||||||
gen_resp = requests.post(f"{SD_URL}/api/txt2img", json=gen_payload, timeout=300)
|
gen_resp = requests.post(f"{config.SD_URL}/api/txt2img", json=gen_payload, timeout=300)
|
||||||
gen_resp.raise_for_status()
|
gen_resp.raise_for_status()
|
||||||
res_data = gen_resp.json()
|
res_data = gen_resp.json()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user