XLabs-AI / x-flux-comfyui

Apache License 2.0
1.14k stars 73 forks source link

ip-adapter Error #94

Open s3219521aa opened 2 months ago

s3219521aa commented 2 months ago

Error occurred when executing XlabsSampler:

Expected query, key, and value to have the same dtype, but got query.dtype: struct c10::Half key.dtype: struct c10::BFloat16 and value.dtype: struct c10::BFloat16 instead.

File "D:\ComfyUI-aki-v1.3\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\ComfyUI-aki-v1.3\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "D:\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\nodes.py", line 354, in sampling x = denoise( File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\sampling.py", line 193, in denoise pred = model_forward( File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\sampling.py", line 51, in model_forward img, txt = block(img=img, txt=txt, vec=vec, pe=pe) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\xflux\src\flux\modules\layers.py", line 297, in forward return self.processor(self, img, txt, vec, pe) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, *kwargs) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\layers.py", line 375, in forward self.shift_ip(img_q, attn, img) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\layers.py", line 304, in shift_ip x += block(img_qkv, attn) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, **kwargs) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\layers.py", line 257, in forward ip_attention = F.scaled_dot_product_attention(

ShaunXZ commented 2 months ago

same error

Anghellia commented 2 months ago

hi, please send your workflow, so we will reproduce your error and fix it

cchance27 commented 2 months ago

here's mine with same error as OP failing.json

t00350320 commented 2 months ago

@Anghellia PTAL flux-ipa-error.json same error

s3219521aa commented 2 months ago

@Anghellia I used your github workflow. ip_adapter_workflow.json

DeeH0pe commented 2 months ago

Without launching Comfyui with --force-fp32 it is working for me. Otherwise I get the same error

daniloitj commented 2 months ago

same error ip_adapter_workflow.json flux1-dev

LL0424 commented 2 months ago

您好,请发送您的工作流程,以便我们修复您的错误并进行修复 I have the same error, is it fixed?

Claw-e commented 2 months ago

@Anghellia @daniloitj @s3219521aa I have the same error, have you found a solution to it ? Many thanks for your time

chaoqunxie commented 2 months ago

@Anghellia @daniloitj @s3219521aa I have the same error, have you found a solution to it ? Many thanks for your time I have the same error, have you found a solution to it ? Many thanks for your time

zjjderek commented 3 weeks ago

same error. :(

CaiNiaoCYY commented 1 week ago

same error

mondriam commented 6 days ago

same error

mondriam commented 6 days ago

Without launching Comfyui with --force-fp32 it is working for me. Otherwise I get the same error

What do you mean by "Without launching Comfyui with --force-fp32"??