lllyasviel / lllyasviel/FramePack

TypeError: 'NoneType' object is not subscriptable

Open
#773 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17.3k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/home/yanruibing/webui/FramePack/demo_gradio.py", line 126, in worker
llama_vec, clip_l_pooler = encode_prompt_conds(prompt, text_encoder, text_encoder_2, tokenizer, tokenizer_2)
File "/home/yanruibing/webui/FramePack/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
File "/home/yanruibing/webui/FramePack/diffusers_helper/hunyuan.py", line 39, in encode_prompt_conds
llama_vec = llama_outputs.hidden_states[-3][:, crop_start:llama_attention_length]
TypeError: 'NoneType' object is not subscriptable

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the traceback from demo_gradio.py:126 and inspect encode_prompt_conds in diffusers_helper/hunyuan.py, especially the hidden_states access at line 39. Determine why llama_outputs.hidden_states is None, then verify that prompt encoding and video generation complete without this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.