ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

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

Open brbbbq opened this issue 1 year ago • 2 comments

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.

brbbbq avatar Apr 19 '24 18:04 brbbbq

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.

ltdrdata avatar Apr 20 '24 13:04 ltdrdata

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.

brbbbq avatar Apr 21 '24 16:04 brbbbq