shiimizu / ComfyUI_smZNodes

Custom nodes for ComfyUI such as CLIP Text Encode++
GNU General Public License v3.0
156 stars 11 forks source link

A nonettype error occurs when running on the following workload #81

Open ytoaa opened 3 weeks ago

ytoaa commented 3 weeks ago

https://civitai.com/images/10020033

Loading 1 new model 0%| | 0/50 [00:00<?, ?it/s] !!! Exception during processing!!! 'NoneType' object is not subscriptable Traceback (most recent call last): File "Q:\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "Q:\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 "Q:\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "Q:\ComfyUI\nodes.py", line 1355, in sample return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) File "Q:\ComfyUI\nodes.py", line 1325, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, File "Q:\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 "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 1446, in KSampler_sample return _KSampler_sample(*args, *kwargs) File "Q:\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 "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 1469, in sample return _sample(args, kwargs) File "Q:\ComfyUI\comfy\samplers.py", line 696, in sample return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed) File "Q:\ComfyUI\comfy\samplers.py", line 683, in sample output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed) File "Q:\ComfyUI\comfy\samplers.py", line 662, in inner_sample samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar) File "Q:\ComfyUI\comfy\samplers.py", line 567, in sample samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, self.extra_options) File "Q:\ComfyUI\venv\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context return func(*args, *kwargs) File "Q:\ComfyUI\comfy\k_diffusion\sampling.py", line 142, in sample_euler denoised = model(x, sigma_hat s_in, extra_args) File "Q:\ComfyUI\comfy\samplers.py", line 291, in call out = self.inner_model(x, sigma, model_options=model_options, seed=seed) File "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 992, in call return self.predict_noise(*args, *kwargs) File "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 1153, in predict_noise out = sampling_function(self.inner_model, args, *kwargs) File "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 1172, in sampling_function cond_pred, uncond_pred = calc_cond_uncondbatch(model, cond, uncond, x, timestep, model_options, cond_scale) File "Q:\ComfyUI\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 1301, in calc_cond_uncond_batch out_uncond[:,:,area[o][2]:area[o][0] + area[o][2],area[o][3]:area[o][1] + area[o][3]] += output[o] mult[o] TypeError: 'NoneType' object is not subscriptable

benzhangdragonplus commented 2 weeks ago

same problem

shiimizu commented 2 weeks ago

Disable multi_conditioning for now.

ytoaa commented 2 weeks ago

Disable multi_conditioning for now.

That way, some of the results will be different.