(operation_to_apply, args)
| 538 | |
| 539 | |
| 540 | def 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 | |
| 554 | def auto1111_hash(file_path): |