Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: invalid value encountered in cast img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) #6

Closed
JonMike12341234 opened this issue Feb 17, 2025 · 1 comment

Comments

@JonMike12341234
Copy link

Hi,

I am using your guide and comfy workflow as well as your ltx files and gguf comfyui

Followed these steps

  1. run the .bat file in the main directory (assuming you are using the gguf-node pack below)

  2. Download and place files:
    -drag ltx-video-2b-v0.9.1-revised-q4_0.gguf (1.08GB) to > ./ComfyUI/models/diffusion_models

-drag t5xxl_fp16-q4_0.gguf (2.9GB) to > ./ComfyUI/models/text_encoders

-drag ltx-video-vae.safetensors (838MB) to > ./ComfyUI/models/vae
run it straight (no installation needed way)

  1. Used Workflow: ltxv-gguf/workflow-ltxv-gguf.json

However:

The result is a black output. Comfy terminal shows:

  img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))```


I tried fixing it various ways:
-appending --force-upcast-attention to run_gpu.bat (no luck)
-(I did notice the workflow above doesn't have the gguf CLIPLoader by default, so I added it, selecting the t5xxl_fp16-q4_0.gguf)
-I also tried using various safetensors in the default CLIPLoader
-I updated comfyUI but since the GGUF build seems custom, it didn't seem to update.

Please if you are reading this and you know the fix (or possible fix), please do share!! ;)
@calcuis
Copy link
Owner

calcuis commented Feb 17, 2025

you could get the most updated pack under releases; decompress it and try to run it again with the clean settings; for updating the node, can just clone this repo and replace the one inside ./ComfyUI/custom_nodes

@calcuis calcuis closed this as completed Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants