This commit is contained in:
wailovet
2024-06-30 22:34:27 +08:00
parent d6c91bf74a
commit e3b2ef9b35
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ class MZ_HYDiTSimpleT2I:
"steps": ("INT", {"default": 20}),
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step": 0.1, "round": 0.01}),
"scheduler": ([
"ddpm", "ddim", "dpmms", "uni_pc"
"ddpm", "ddim", "dpmms", "uni_pc", "DPMPP_2M_Karras"
], {"default": "ddpm"}),
"prompt": ("STRING", {"default:": "", "dynamicPrompts": True, "multiline": True}),
"negative_prompt": ("STRING", {"default:": "", "dynamicPrompts": True, "multiline": True}),
+14
View File
@@ -872,6 +872,20 @@ def MZ_HYDiTSimpleT2I_call(args={}):
# 'algorithm_type': 'dpmsolver++',
}
}
SAMPLER_FACTORY["DPMPP_2M_Karras"] = {
'scheduler': 'DPMSolverMultistepScheduler',
'name': 'DPMSolverMultistepScheduler',
'kwargs': {
'beta_schedule': 'scaled_linear',
'beta_start': 0.00085,
'beta_end': 0.03,
'prediction_type': 'v_prediction',
'trained_betas': None,
'solver_order': 2,
'algorithm_type': 'dpmsolver++',
"use_karras_sigmas": True,
}
}
width = args.get("width")
height = args.get("height")