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

RuntimeError: Mask shape should match input shape #954

Open
MINXIANWEN opened this issue Oct 3, 2024 · 0 comments
Open

RuntimeError: Mask shape should match input shape #954

MINXIANWEN opened this issue Oct 3, 2024 · 0 comments

Comments

@MINXIANWEN
Copy link

hello,author,i have a question want to ask you. when i use clip.model.text_encode , the text.tensor.shape must is [77,77]?,meaning that the text must is consist of 77 sequences? the attn_mask could be changed? the attn_mask's tensor shape is [77,77],looks like a upper triangular matrix, but when i changed my text_tensor_shape to be [77,77],it also have the same error,mask shape should match input shape, so i don't where is the problem, need your help. thanks author

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

1 participant