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

example.py forward pass output #3

Open
adgbit opened this issue Oct 6, 2023 · 0 comments
Open

example.py forward pass output #3

adgbit opened this issue Oct 6, 2023 · 0 comments

Comments

@adgbit
Copy link

adgbit commented Oct 6, 2023

Hi everyone, I tried to run the example.py, but I'm getting this error during the forward pass. It seems like there's something misconfigured or a compatibility issue. If anyone has been through this process, I would like to know what the solution is. Here, I'm sharing the output when running example.py

Thank you very much, regards.

``text_config_dictis provided which will be used to initializeCLIPTextConfig`. The value `text_config["id2label"]` will be overriden.
`text_config_dict` is provided which will be used to initialize `CLIPTextConfig`. The value `text_config["bos_token_id"]` will be overriden.
`text_config_dict` is provided which will be used to initialize `CLIPTextConfig`. The value `text_config["eos_token_id"]` will be overriden.
Tokenized image: torch.Size([1, 3, 224, 224])
Error during forward pass: Sizes of tensors must match except in dimension 2. Expected size 8 but got size 16384 for tensor number 1 in the list.
Text: This is a short sequence.
Number of tokens: 8
Output size: None`

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