Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

'ClipVisionModel' object has no attribute 'processor' #42

Open
MoonMoon82 opened this issue Oct 26, 2023 · 17 comments
Open

'ClipVisionModel' object has no attribute 'processor' #42

MoonMoon82 opened this issue Oct 26, 2023 · 17 comments

Comments

@MoonMoon82
Copy link

After the latest update of ComfyUI I get this error message while running the "Apply IPAdapter" node:

  File "e:\Stablediffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "e:\Stablediffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "e:\Stablediffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "E:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI\ip_adapter.py", line 159, in adapter
    cond, uncond, outputs = self.clip_vision_encode(clip_vision, image, self.plus)
  File "E:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI\ip_adapter.py", line 228, in clip_vision_encode
    inputs = clip_vision.processor(images=img, return_tensors="pt")
AttributeError: 'ClipVisionModel' object has no attribute 'processor'

Could you please check?

@Jasonlin00
Copy link

i got the same error.

@MoonMoon82
Copy link
Author

IP Adapter Plus already fixed this issue in their nodes:
cubiq/ComfyUI_IPAdapter_plus#48

@cerarslan
Copy link

IP Adapter Plus already fixed this issue in their nodes: cubiq/ComfyUI_IPAdapter_plus#48

same for me

@Losswife
Copy link

I am still getting this error. I have installed every new IPAdapter model within Comfy Manager. I'm out of ideas.

@imesha10
Copy link

imesha10 commented Oct 26, 2023

I'm getting this error too. I'm using comfyui on runpod.io. I comfyui and this extension too.
When I loaded it up just now for some reason I've got that error.

Error occurred when executing IPAdapter:

'ClipVisionModel' object has no attribute 'processor'

File "/workspace/ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/workspace/ComfyUI/execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/workspace/ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/workspace/ComfyUI/custom_nodes/IPAdapter-ComfyUI/ip_adapter.py", line 138, in adapter
cond, uncond, outputs = self.clip_vision_encode(clip_vision, image, self.plus)
File "/workspace/ComfyUI/custom_nodes/IPAdapter-ComfyUI/ip_adapter.py", line 205, in clip_vision_encode
inputs = clip_vision.processor(images=img, return_tensors="pt")

@solaresmty
Copy link

I am trying to use AloeVera's in ComfyUI but I get this error and I don't know much about the subject but I would like some guidance on what I have to do to make it work. thank you

Error occurred when executing IPAdapter:

'ClipVisionModel' object has no attribute 'processor'

File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI\ip_adapter.py", line 138, in adapter
cond, uncond, outputs = self.clip_vision_encode(clip_vision, image, self.plus)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI\ip_adapter.py", line 205, in clip_vision_encode
inputs = clip_vision.processor(images=img, return_tensors="pt")
^^^^^^^^^^^^^^^^^^^^^

@ttchina
Copy link

ttchina commented Oct 27, 2023

same here, so i can only use another node called "apply ipadapter" to make it work

@solaresmty
Copy link

same here, so i can only use another node called "apply ipadapter" to make it work

where did you download it from? to try to use that

@doctorbinsibar
Copy link

this wont work. It using useless amounts of vram. I tried on V100 with 12gb still same error. Now on 30 GB VRam its working fine !

@cerarslan
Copy link

same here, so i can only use another node called "apply ipadapter" to make it work

where did you download it from? to try to use that

Try ip-adapter plus extension it is in there.

@laksjdjf
Copy link
Owner

i fixed it.

@Manish-cel
Copy link

i fixed it.

please share how to fix this issue.

@cubiq
Copy link

cubiq commented Oct 29, 2023

I still think we should merge 😄

@s1702w0246
Copy link

i fixed it.

need update ,thanks

@TitusHora
Copy link

I updated everything (comfyui + all the plugins) and I am still getting this error message: 'ClipVisionModel' object has no attribute 'processor'.

Can anybody, please, help me fix this? Thank you!

@cubiq
Copy link

cubiq commented Nov 5, 2023

Can anybody, please, help me fix this? Thank you!

you need to download the latest version, updating might not be enough

@TitusHora
Copy link

Can anybody, please, help me fix this? Thank you!

you need to download the latest version, updating might not be enough

Thank you, @cubiq; I did download ip adapter plus. safetensors and it works now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests