8000 assert t2i_input_embedding.shape[1] == self.img_token_num · Issue #56 · eric-ai-lab/MiniGPT-5 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
assert t2i_input_embedding.shape[1] == self.img_token_num #56
Open
< 5BAE /div>
@gsfsdv

Description

@gsfsdv

I hope you're doing well! I’ve been working with your code, and I’ve encountered an issue when executing the following assertion:
assert t2i_input_embedding.shape[1] == self.img_token_num
The error occurs because t2i_input_embedding.shape[1] is 1, but self.img_token_num is set to 8, causing the assertion to fail. I’m not sure why the second dimension of t2i_input_embedding would be 1 when I expect it to match self.img_token_num.

Could you help clarify the intended shape of t2i_input_embedding here? Is there any specific preprocessing step or reshaping operation I might have missed that would result in this discrepancy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0