XLabs-AI / x-flux-comfyui

Apache License 2.0
1.06k stars 71 forks source link

err:'CLIPVisionModelProjection' object has no attribute 'load_device' #85

Closed se7enth closed 2 months ago

se7enth commented 2 months ago

useing exsaample workflow but report ;'CLIPVisionModelProjection' object has no attribute 'load_device'

model download form hf, and checked with Sha256. but any setting would report 'CLIPVisionModelProjection' object has no attribute 'load_device'

Device: cuda:0 NVIDIA GeForce RTX 2080 Ti : cudaMallocAsync Using pytorch cross attention

Error occurred when executing ApplyFluxIPAdapter:

'CLIPVisionModelProjection' object has no attribute 'load_device'

File "D:\StabilityMatrix-win-x64\Data\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 "D:\StabilityMatrix-win-x64\Data\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 "D:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "D:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "D:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\x-flux-comfyui\nodes.py", line 498, in applymodel pixel_values = clip_preprocess(image.to(clip.load_device)).float() File "D:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1729, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

Vovanm88 commented 2 months ago

Update