Spaces:
Running
Running
Update externalmod.py
Browse files- externalmod.py +1 -1
externalmod.py
CHANGED
@@ -589,7 +589,7 @@ def save_image(image, savefile, modelname, prompt, nprompt, height=0, width=0, s
|
|
589 |
from PIL import Image, PngImagePlugin
|
590 |
import json
|
591 |
try:
|
592 |
-
metadata = {"prompt": prompt, "negative_prompt": nprompt, "Model": {"Model": modelname.split("/")[-1]}}
|
593 |
if steps > 0: metadata["num_inference_steps"] = steps
|
594 |
if cfg > 0: metadata["guidance_scale"] = cfg
|
595 |
if seed != -1: metadata["seed"] = seed
|
|
|
589 |
from PIL import Image, PngImagePlugin
|
590 |
import json
|
591 |
try:
|
592 |
+
metadata = {"prompt": prompt, "scheduler":"sgm_uniform", "sampler":"dpmpp_2m", "negative_prompt": nprompt, "Model": {"Model": modelname.split("/")[-1]}}
|
593 |
if steps > 0: metadata["num_inference_steps"] = steps
|
594 |
if cfg > 0: metadata["guidance_scale"] = cfg
|
595 |
if seed != -1: metadata["seed"] = seed
|