MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / print_request

Function print_request

ui/easydiffusion/backends/webui_common.py:540–551  ·  view source on GitHub ↗
(operation_to_apply, args)

Source from the content-addressed store, hash-verified

538
539
540def print_request(operation_to_apply, args):
541 args = deepcopy(args)
542 if "init_images" in args:
543 args["init_images"] = ["img" for _ in args["init_images"]]
544 if "mask" in args:
545 args["mask"] = "mask_img"
546
547 controlnet_args = args.get("alwayson_scripts", {}).get("controlnet", {}).get("args", [])
548 if controlnet_args:
549 controlnet_args[0]["image"] = "control_image"
550
551 print(f"operation: {operation_to_apply}, args: {args}")
552
553
554def auto1111_hash(file_path):

Callers 1

generate_imagesFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected