ashen-sensored / sd_webui_SAG

MIT License
236 stars 28 forks source link

Pnginfo and send to img2img/inpaint support #6

Open matrix4767 opened 1 year ago

matrix4767 commented 1 year ago

Could this extension make its way in the metadata and remember when it was used?

AG-w commented 1 year ago

if you don't mind do it youself, edit SAG.py: add this in the end of function ui() (but before return[])

self.infotext_fields = []
self.paste_field_names = []
self.infotext_fields = [
    (scale, "SAG Guidance Scale"),
    (mask_threshold, "SAG Mask Threshold"),
]

for _,name in self.infotext_fields:
    self.paste_field_names.append(name)