You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for your work, it's interesting! but iam trouble with follow code x = x[torch.arange(x.shape[0]), tokenized_prompts.argmax(dim=-1)] @ self.text_projection in CoOp.py Class TextEncode->Function forward()
I am curious about the self.text_projection. Is it the clip's textencode's output? and how x it work to select the max value in the matrix?
Can you explain it more? thanks a lot!
The text was updated successfully, but these errors were encountered:
Hello, thanks for your work, it's interesting! but iam trouble with follow code
x = x[torch.arange(x.shape[0]), tokenized_prompts.argmax(dim=-1)] @ self.text_projection
in CoOp.py Class TextEncode->Function forward()I am curious about the self.text_projection. Is it the clip's textencode's output? and how x it work to select the max value in the matrix?
Can you explain it more? thanks a lot!
The text was updated successfully, but these errors were encountered: