WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

Error occurred when executing BLIP Analyze Image: #329

Open xerium9 opened 10 months ago

xerium9 commented 10 months ago

Hello, I thought I'd do a quick post here since I can't seem to find this specific error as it relates to WAS. When I try to use very simply the BLIP analyze image node, I get the following error:

Error occurred when executing BLIP Analyze Image:

Cannot handle this data type: (1, 1, 768, 3), |u1

File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 85, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui.old\WAS_Node_Suite.py", line 11066, in blip_caption_image image = tensor2pil(image) File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui.old\WAS_Node_Suite.py", line 355, in tensor2pil return Image.fromarray(np.clip(255. image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8)) File "D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\PIL\Image.py", line 3092, in fromarray raise TypeError(msg) from e

I have reinstalled WAS, reinstalled all the requirements.txt for both WAS and Comfyui. I have updated ComfyUI and all other possible updates.

Any insight on this would be awesome. Thanks

image

mgaillard87 commented 10 months ago

Same for me, since today.

rasooul commented 10 months ago

same here

WASasquatch commented 10 months ago

Reinstall WAS-NS requirements. You've likely installed something else that upgraded transformers. Transformers abandoned BLIP 1 a long time ago. Documentation is stale and is broken on newer versions.

On Sun, Jan 14, 2024 at 1:48 PM rasooul @.***> wrote:

same here

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/329#issuecomment-1891081735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZI7EQBINZ33H3LTBSLYORHCFAVCNFSM6AAAAABBZ64SF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGA4DCNZTGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Sincerely, Jordan S. C. Thompson

mgaillard87 commented 10 months ago

Thank you very much for your time, I had uninstalled the last nodes installed, but I hadn't thought of reinstalling the WAS dependencies, which I obviously should have done!

mgaillard87 commented 10 months ago

Euh, well it seems that it's comfy UI itself that upgraded transformers. (reinstalling the old version breaks ComfyUI).

WASasquatch commented 10 months ago

Euh, well it seems that it's comfy UI itself that upgraded transformers. (reinstalling the old version breaks ComfyUI).

That's unfortunate. May mean currently WAS-NS is legacy ComfyUI versions only until I add a way to simply not include it in importing if it's not valid transformers version.

BenderBlender commented 10 months ago

Same problem image

tomudo commented 10 months ago

I seem like Blip Analyse image does not support list of multiple images. I request to add list images or batch images support.

ivanoff13 commented 9 months ago

Переустановите требования WAS-NS. Вероятно, вы установили что-то еще, что обновило transformers. Transformers давно отказались от BLIP 1. Документация устарела и не работает в более новых версиях. В воскресенье, 14 января 2024 г., в 13:48 rasooul @.> написал: то же самое здесь — Ответьте на это письмо напрямую, просмотрите его на GitHub <#329 (комментарий)> или отпишитесь < https://github.com/notifications/unsubscribe-auth/AAIZEZI7EQBINZ33H3LTBSLYORHCFAVCNFSM6AAAAABBZ64SF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGA4DCNZTGU> . Вы получаете это, потому что вы подписаны на эту тему.Идентификатор сообщения.: @.>

  • С уважением, Джордан С. К. Томпсон

how to do it?

trithucxx commented 9 months ago

Euh, well it seems that it's comfy UI itself that upgraded transformers. (reinstalling the old version breaks ComfyUI).

That's unfortunate. May mean currently WAS-NS is legacy ComfyUI versions only until I add a way to simply not include it in importing if it's not valid transformers version.

yeah, how to fix it? I'm designer so couldn understand how hard it is

CaptailTyler commented 8 months ago

This worked for me: 1: Shutdown ComfyUI 2: Run "install.bat" for the WAS Nodes. My location was: "ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui" It uninstalled a few Transformers and now the BLIP works. Didn't notice it installing anything, took about 2 minutes to run.

Note: Always make a full backup of your ComfyUI portable when doing these as it may break the whole thing.

Also, I found the solution here posted by the user 'orbithammer': https://github.com/WASasquatch/was-node-suite-comfyui/issues/289

WAS-PlaiLabs commented 7 months ago

https://github.com/WASasquatch/was-node-suite-comfyui/pull/393

Refactored BLIP

BobDu commented 4 months ago

same problem

Kimthanh27 commented 3 months ago

hey. i did the same way by reinstalling install.bat of was node. same error still showed up. can you pls help me ^^