nullquant / ComfyUI-BrushNet

ComfyUI BrushNet nodes
Apache License 2.0
597 stars 23 forks source link

PowerPaint报错TypeError: EmbeddingLayerWithFixes.forward() got an unexpected keyword argument 'out_dtype' #130

Open wujm424606 opened 2 months ago

wujm424606 commented 2 months ago

Traceback (most recent call last): File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BrushNet\brushnet_nodes.py", line 260, in model_update prompt_embedsA = clip.encode_from_tokens(tokens, return_pooled=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 115, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 565, in encode_token_weights out = getattr(self, self.clip).encode_token_weights(token_weight_pairs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 41, in encode_token_weights o = self.encode(to_encode) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 226, in encode return self(tokens) ^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 198, in forward outputs = self.transformer(tokens, attention_mask_model, intermediate_output=self.layer_idx, final_layer_norm_intermediate=self.layer_norm_hidden_state, dtype=torch.float32) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\clip_model.py", line 136, in forward x = self.text_model(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\clip_model.py", line 99, in forward x = self.embeddings(input_tokens, dtype=dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\ComfyUI\comfy\clip_model.py", line 81, in forward return self.token_embedding(input_tokens, out_dtype=dtype) + comfy.ops.cast_to(self.position_embedding.weight, dtype=dtype, device=input_tokens.device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\WangYouning\PycharmProjects\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: EmbeddingLayerWithFixes.forward() got an unexpected keyword argument 'out_dtype'

botnang commented 2 months ago

same here.......

nullquant commented 2 months ago

The issue is due to new commit to ComfyUI from 31/07/24. Patched it, update to new version, please.

KINGLIFER commented 2 months ago

Thank you. Woops after update I got this: Error occurred when executing KSampler:

name 'calc_cond_batch_original_tiled_diffusion_46d8c515' is not defined (using example workflow)

nullquant commented 2 months ago

Thank you. Woops after update I got this: Error occurred when executing KSampler:

name 'calc_cond_batch_original_tiled_diffusion_46d8c515' is not defined (using example workflow)

There is a problem with some other custom nodes you use. Could you please post full log?