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

logits的大小为什么是[B,1] #10

Open
yukinye opened this issue Dec 3, 2024 · 0 comments
Open

logits的大小为什么是[B,1] #10

yukinye opened this issue Dec 3, 2024 · 0 comments

Comments

@yukinye
Copy link

yukinye commented Dec 3, 2024

大佬好,在调试DIVA_for_OpenAICLIP.sh配置的时后,我发现DIVA/models/SD_with_OpenAICLIP.py文件中,第41到60行的logits变量取值为[B,1]的大小。我对这个1的含义有些不太理解。由于这个1来自同文件第33行的设置,是否可能是我在这里的配置出现了问题?
另外,我在同一文件的第161行,发现probs的取值全为1。接下来,这个probs与class_text_embeddings相乘的部分我也不是很清楚具体含义,是否是为了实现某种特定的逻辑设置?希望能得到您的解答

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