yolain / ComfyUI-Easy-Use

In order to make it easier to use the ComfyUI, I have made some optimizations and integrations to some commonly used nodes.
GNU General Public License v3.0
930 stars 62 forks source link

出现莫名报错,重启可解决。 #208

Closed the2ndface closed 3 months ago

the2ndface commented 3 months ago

云端环境,ubuntu 节点、内核更新至最新

重启后可正常运行,一段时间后莫名报错,工作流没有变化,中间只操作过替换节点调整工作流,但最终把节点恢复到初始依然报错。

`Error occurred when executing easy fullkSampler:

InpaintWorker.calculate_weight_patched() takes 4 positional arguments but 5 were given

File "/home/runner/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/runner/ComfyUI/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/home/runner/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/home/runner/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/easyNodes.py", line 4760, in run return process_sample_state(pipe, samp_model, samp_clip, samp_samples, samp_vae, samp_seed, samp_positive, samp_negative, steps, start_step, last_step, cfg, sampler_name, scheduler, denoise, image_output, link_id, save_prefix, tile_size, prompt, extra_pnginfo, my_unique_id, preview_latent, force_full_denoise, disable_noise, samp_custom) File "/home/runner/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/easyNodes.py", line 4544, in process_sample_state samp_samples = sampler.common_ksampler(samp_model, samp_seed, steps, cfg, sampler_name, scheduler, samp_positive, samp_negative, samp_samples, denoise=denoise, preview_latent=preview_latent, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, disable_noise=disable_noise) File "/home/runner/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/libs/sampler.py", line 114, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, File "/home/runner/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/sample_error_enhancer.py", line 9, in informative_sample return original_sample(*args, *kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations. File "/home/runner/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py", line 313, in motion_sample return orig_comfy_sample(model, noise, args, kwargs) File "/home/runner/ComfyUI/comfy/sample.py", line 43, in sample samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed) File "/home/runner/ComfyUI/custom_nodes/ComfyUI_smZNodes/smZNodes.py", line 1446, in KSampler_sample return _KSampler_sample(*args, *kwargs) File "/home/runner/ComfyUI/comfy/samplers.py", line 794, in sample return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) File "/home/runner/ComfyUI/custom_nodes/ComfyUI_smZNodes/smZNodes.py", line 1469, in sample return _sample(args, *kwargs) File "/home/runner/ComfyUI/comfy/samplers.py", line 696, in sample return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed) File "/home/runner/ComfyUI/comfy/samplers.py", line 673, in sample self.inner_model, self.conds, self.loaded_models = comfy.sampler_helpers.prepare_sampling(self.model_patcher, noise.shape, self.conds) File "/home/runner/ComfyUI/comfy/sampler_helpers.py", line 64, in prepare_sampling comfy.model_management.load_models_gpu([model] + models, model.memory_required([noise_shape[0] 2] + list(noise_shape[1:])) + inference_memory) File "/home/runner/ComfyUI/comfy/model_management.py", line 464, in load_models_gpu cur_loaded_model = loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights) File "/home/runner/ComfyUI/comfy/model_management.py", line 306, in model_load raise e File "/home/runner/ComfyUI/comfy/model_management.py", line 302, in model_load self.real_model = self.model.patch_model(device_to=patch_model_to, patch_weights=load_weights) File "/home/runner/ComfyUI/comfy/model_patcher.py", line 278, in patch_model self.patch_weight_to_device(key, device_to) File "/home/runner/ComfyUI/comfy/model_patcher.py", line 259, in patch_weight_to_device out_weight = self.calculate_weight(self.patches[key], temp_weight, key).to(weight.dtype) File "/home/runner/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/libs/fooocus.py", line 66, in calculate_weight_patched return self.original_calculate_weight(self, remaining, weight, key)`

yolain commented 3 months ago

可以给下 工作流我看下。 老问题了,fooocus inpaint的原因,后面我给他设成每次采样完 模型都给重置了,一般情况下都不会出现这个了。

the2ndface commented 3 months ago

AI人像摄影V3.1(by方块李 aimfxy.com).json

做了个AI摄影的工作流缝合怪,算是半完成状态,请大佬指点。 期待大佬的节点加入更多功能,比如pulid,因为目前节点包没有这个节点,pulid 和 instantid使用原始节点。

yolain commented 3 months ago

AI人像摄影V3.1(by方块李 aimfxy.com).json

做了个AI摄影的工作流缝合怪,算是半完成状态,请大佬指点。 期待大佬的节点加入更多功能,比如pulid,因为目前节点包没有这个节点,pulid 和 instantid使用原始节点。

a-4 那块,偏复杂点流程 fooocus inpaint 少用吧😂 应该是开关或者 从中途修改的地方跑 它没有触发到清空模型了。之前看 pulid 效果不是很好,所以我没有做简易节点出来,不造最近有么有更新进展。

the2ndface commented 3 months ago

好的,pulid感觉确实不如instantID效果好