提交 06ada734 编写于 作者: B Billy Cao

Prevent warning on sampler_index if sampler_name is being used

上级 3cf93de2
......@@ -117,6 +117,8 @@ class Api:
"do_not_save_grid": True
}
)
if populate.sampler_name:
populate.sampler_index = None # prevent a warning later on
p = StableDiffusionProcessingTxt2Img(**vars(populate))
# Override object param
......@@ -148,6 +150,8 @@ class Api:
"mask": mask
}
)
if populate.sampler_name:
populate.sampler_index = None # prevent a warning later on
p = StableDiffusionProcessingImg2Img(**vars(populate))
imgs = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册