'Linear' object has no attribute 'out_features'

#6
by Michuns - opened

I've already updated comfy, torch and x-flux-comfyui. But i keep getting this error:
Error occurred when executing ApplyFluxIPAdapter:

'Linear' object has no attribute 'out_features'

File "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\execution.py", line 316, 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 "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\execution.py", line 191, 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 "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\execution.py", line 168, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\custom_nodes\x-flux-comfyui\nodes.py", line 495, in applymodel
patches=FluxUpdateModules(tyanochky, pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MihMas\ComfyUI\comfyui\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 "C:\Users\MihMas\ComfyUI\comfyui\ComfyUI\custom_nodes\x-flux-comfyui\utils.py", line 19, in CopyDSB
mlp_hidden_dim = tyan.img_mlp[0].out_features
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MihMas\ComfyUI\comfyui\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1729, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
image.png

Got that too. It does not work with .gguf models apparently. Try loading the default diffusers version and you should be good to go

Got that too. It does not work with .gguf models apparently. Try loading the default diffusers version and you should be good to go

Thank you. It worked. But maybe it is not worth it on my PC.
image.png

XLabs AI org

Hi! Yeah, now IP-Adapter is not supported with .gguf model in our workflow

Michuns changed discussion status to closed

Sign up or log in to comment