XLabs-AI / x-flux-comfyui

Apache License 2.0
1.05k stars 70 forks source link

Error occurred when executing ApplyFluxIPAdapter #81

Open blodytrav3l3r opened 2 months ago

blodytrav3l3r commented 2 months ago

Please help

Error occurred when executing ApplyFluxIPAdapter:

'FluxClipViT' object has no attribute 'parameters'

File "N:\AI\ComfyUI\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "N:\AI\ComfyUI\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 "N:\AI\ComfyUI\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "N:\AI\ComfyUI\ComfyUI\custom_nodes\x-flux-comfyui\nodes.py", line 493, in applymodel clip_device = next(clip.parameters()).device ^^^^^^^^^^^^^^^

zdaar commented 2 months ago

Same error with default workflow and respected the instructions of downloading the model.safetensors

zdaar commented 2 months ago

@blodytrav3l3r I made a fix in my PR #82

blodytrav3l3r commented 2 months ago

thank you

Vovanm88 commented 2 months ago

fixed two hours ago...

vivalabadila2 commented 2 months ago

Hi folks, I tried twice editing nodes.py under x-flux-comfyui folder, but after restarting comfyui misses all x-flux custom nodes.

So, I'm still "stiched" to the error message,*, any advice would be appreciated, thank you folks!!!!

* Error occurred when executing ApplyFluxIPAdapter:

'Linear' object has no attribute 'out_features'

File "K:\StabilityMatrix\Packages\ComfyUI\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 "K:\StabilityMatrix\Packages\ComfyUI\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 "K:\StabilityMatrix\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "K:\StabilityMatrix\Packages\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "K:\StabilityMatrix\Packages\ComfyUI\custom_nodes\x-flux-comfyui\nodes.py", line 522, in applymodel patches=FluxUpdateModules(tyanochky, pbar) File "K:\StabilityMatrix\Packages\ComfyUI\custom_nodes\x-flux-comfyui\utils.py", line 81, in FluxUpdateModules patches[f"double_blocks.{i}"]=CopyDSB(flux_model.diffusion_model.double_blocks[i]) File "K:\StabilityMatrix\Packages\ComfyUI\custom_nodes\x-flux-comfyui\utils.py", line 19, in CopyDSB mlp_hidden_dim = tyan.img_mlp[0].out_features File "K:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1695, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

Vovanm88 commented 2 months ago

GGUF models do not support yet