Switch sampler

This commit is contained in:
Luke Robles 2023-09-14 12:03:30 -07:00
parent cafacfa6f4
commit 1ec6424e44
2 changed files with 6 additions and 4 deletions

View File

@ -44,10 +44,11 @@ class StableDiffusion(commands.Cog):
if ctx.author.id == core_utils.my_id: if ctx.author.id == core_utils.my_id:
ip = "192.168.1.19" ip = "192.168.1.19"
steps = 120 steps = 120
positive_prompt = ( if "lora" not in positive_prompt:
positive_prompt positive_prompt = (
+ " <lora:add_detail:0.3> <lora:bimbostyleThreeU:0.4> <lora:gigatitums:0.4> <lora:more_details:0.3>" positive_prompt
) + " <lora:bimbostyleThreeU:0.3> <lora:gigatitums:0.3> <lora:add_detail:1>"
)
enable_upscale = "true" enable_upscale = "true"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1) s.settimeout(1)

View File

@ -10,6 +10,7 @@ async def generate_image(ip, port, positives, negatives, steps, enable_upscale):
json_data = { json_data = {
"prompt": positives, "prompt": positives,
"negative_prompt": negatives, "negative_prompt": negatives,
"sampler_name": "DPM++ 2M SDE Karras",
"steps": steps, "steps": steps,
"enable_hr": enable_upscale, "enable_hr": enable_upscale,
"hr_upscaler": "Latent", "hr_upscaler": "Latent",