TencentQQGYLab / ComfyUI-ELLA

ELLA nodes for ComfyUI
347 stars 18 forks source link

M1 max, Error occurred when executing EllaApply: "LayerNormKernelImpl" not implemented for 'Half' #43

Closed yiwangsimple closed 6 months ago

yiwangsimple commented 6 months ago

Error occurred when executing EllaApply:

"LayerNormKernelImpl" not implemented for 'Half'

File "/Users/weiwei/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/Users/weiwei/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 "/Users/weiwei/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/ella.py", line 161, in apply conds = ella_encode(ella["model"], timesteps, positive) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/ella.py", line 42, in ella_encode cond_ella = ella(timestep, embeds) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/model.py", line 330, in call cond = self.model(timesteps, t5_embeds, kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/model.py", line 308, in forward return self.connector(t5_embeds, timestep_embedding=time_embedding) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(*args, *kwargs) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/model.py", line 110, in forward latents = p_block(x, latents, timestep_embedding=timestep_embedding) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(args, kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(*args, kwargs) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/model.py", line 69, in forward normed_latents = self.ln_1(latents, timestep_embedding) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI-ELLA/model.py", line 32, in forward return self.norm(x) (1 + scale) + shift File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(args, kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(*args, *kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/modules/normalization.py", line 201, in forward return F.layer_norm( File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/sd_hijack_utils.py", line 17, in setattr(resolved_obj, func_path[-1], lambda args, kwargs: self(*args, *kwargs)) File "/Users/weiwei/ComfyUI/custom_nodes/ComfyUI_smZNodes/modules/sd_hijack_utils.py", line 28, in call return self.__orig_func(args, **kwargs) File "/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/torch/nn/functional.py", line 2546, in layer_norm return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)