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

maybe have a bug #18

Open
fangfangzk opened this issue Jun 3, 2024 · 5 comments
Open

maybe have a bug #18

fangfangzk opened this issue Jun 3, 2024 · 5 comments

Comments

@fangfangzk
Copy link

我发现代码中 similarity_map_list里面的4个map,值都相等。原因可能是把中间的feature加入list时没有clone()?
image

@zqhang
Copy link
Owner

zqhang commented Jun 6, 2024

Hi! Have you checked it for all images or just a single one?

@fangfangzk
Copy link
Author

我调试了这里,发现把x[0]添加进out_tokens里面后,然后让 x 继续执行网络,发现out_tokens里面的值也会跟着变
image

@zqhang
Copy link
Owner

zqhang commented Jun 6, 2024

Thank you, I will check it.

@CHELSEA234
Copy link

@fangfangzk @zqhang
I have also noticed this point. May I ask if the performance changes after changing to using x[0]?

@lyy70
Copy link

lyy70 commented Aug 23, 2024

Yes, I also found this BUG, I regenerated the exception graph of the four layers and found that they were consistent. The main reason lies in out_token.append(x[0]). When I changed it to out_tokens.append(copy.deepcopy(x[0])), the patchtoken of the four layers was different, but the exception detection performance decreased.

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

4 participants