zqhang / AnomalyCLIP

Official implementation for AnomalyCLIP (ICLR 2024)
192 stars 21 forks source link

maybe have a bug #18

Open fangfangzk opened 1 month ago

fangfangzk commented 1 month ago

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

zqhang commented 1 month ago

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

fangfangzk commented 1 month ago

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

zqhang commented 1 month ago

Thank you, I will check it.

CHELSEA234 commented 1 week ago

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