-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
Expected Behavior
Object patch is properly removed from different workflow execution.
Actual Behavior
Object patches are not removed when executing different patches.
Steps to Reproduce
-
Install ComfyUI-layerdiffuse and patch PR: Fix SD15 memory sharing huchenlei/ComfyUI-layerdiffuse#119
-
Start ComfyUI server
-
Execute workflow1 and observe that it executes normally layer_diffusion_fg_example (1).json
-
Execute workflow 2 and observe error
layer_diffusion_cond_joint_bg (1).json
-
Restart ComfyUI server
-
Execute wrkflow 1 and observe the same error as in step 4 on workflow 2
Putting a breakpoint here https://github.com/huchenlei/ComfyUI-layerdiffuse/blob/ab409eefbba15ecc322a6ea830e077576e904326/lib_layerdiffusion/attention_sharing.py#L334
on step 7 run indicates that the objectes_backup is not restored after the previous run.
Debug Logs
N/A
Other
Ref issue: huchenlei/ComfyUI-layerdiffuse#115