comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
58.94k stars 6.25k forks source link

Multiple module 'comfy.sample' has no attribute & deprecated WARNING after update #3304

Open brbbbq opened 7 months ago

brbbbq commented 7 months ago

I tried running update_comfyui.bat and updating through the manager, but keep getting weird errors.

At first I was getting comfy.sample errors, and saw this post: module 'comfy.sample' has no attribute 'prepare_mask' #3247

I was able to manually copy the def prepare_mask and def get_additional_models code from sampler_helpers.py to sample.py, but now I'm getting this error in the command window when rendering through the ksampler:

WARNING: The comfy.samplers.calc_cond_uncond_batch function is deprecated please use the calc_cond_batch one instead.
ltdrdata commented 7 months ago

A specific function is set to be removed from ComfyUI, and the issue is occurring because some custom nodes have not yet adapted to this change.

brbbbq commented 7 months ago

Is there a way to easily identify which nodes are causing it so I can notify the developers?

Otherwise is there a way to disable the warning for now? The warning is spamming my command window and makes it hard to keep track of previous renders.