beichenzbc / Long-CLIP

[ECCV 2024] official code for "Long-CLIP: Unlocking the Long-Text Capability of CLIP"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError

xylovezxy opened this issue · comments

When I was using longclip inference, I encountered an error TypeError: forward() missing 2 required positional arguments: 'text_short' and 'rank'.

we modify the forward function for adding short-text in training. You may refer to demo.py for usage.

Thank you