Skip to content

Nil pointer (?) in hunyuan.py #9

@TGMcLean

Description

@TGMcLean

A quick survey shows this has happened in the past. Maybe hunyuan.py needs an update?

Loading model to memory(mps): CLIPTextModel
Traceback (most recent call last):
  File "/.../core_framepackstudio/appstudio.py", line 1109, in worker
    llama_vec, llama_attention_mask, clip_l_pooler = get_cached_or_encode_prompt(
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../core_framepackstudio/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../core_framepackstudio/appstudio.py", line 977, in get_cached_or_encode_prompt
    llama_vec, clip_l_pooler = encode_prompt_conds(
                               ^^^^^^^^^^^^^^^^^^^^
  File "/.../core_framepackstudio/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../core_framepackstudio/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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleno user interaction in a while. will be closed soon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions