was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

Error occurred when executing BLIP Analyze Image:

Open xerium9 opened this issue 1 year ago • 14 comments

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

xerium9 avatar Jan 14 '24 09:01 xerium9

Same for me, since today.

mgaillard87 avatar Jan 14 '24 17:01 mgaillard87

same here

rasooul avatar Jan 14 '24 21:01 rasooul

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 *

WASasquatch avatar Jan 15 '24 02:01 WASasquatch

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 avatar Jan 15 '24 07:01 mgaillard87

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

mgaillard87 avatar Jan 15 '24 09:01 mgaillard87

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.

WASasquatch avatar Jan 16 '24 04:01 WASasquatch

Same problem image

BenderBlender avatar Jan 27 '24 08:01 BenderBlender

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

tomudo avatar Feb 04 '24 11:02 tomudo

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

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

how to do it?

ivanoff13 avatar Feb 13 '24 16:02 ivanoff13

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

trithucxx avatar Feb 14 '24 10:02 trithucxx

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

CaptailTyler avatar Mar 21 '24 10:03 CaptailTyler

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

Refactored BLIP

WAS-PlaiLabs avatar May 04 '24 16:05 WAS-PlaiLabs

same problem

BobDu avatar Jul 09 '24 06:07 BobDu

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

Kimthanh27 avatar Aug 08 '24 02:08 Kimthanh27