-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
evaluate_gpu.py #16
Comments
你好,index里面存的是序号, 通俗地说,是排序的顺序,变长变短不影响 。 不需要和cmc的长度一致。 |
但是投票的时候不是根据index里的序号来的,如下代码所示
|
我们捋一下。 rows_good 已经是删除过同camera里面的index了, |
我是这样理解的。 假设: 假设junk_index = [6,7],则去除junk_index后: 假设good_index = [3,4,1],则: 经过“cmc[rows_good[0]:] = 1”,得 也就是说,cmc最终的赋值,跟index里面的序号没关,只和序号在index中的位置(比如序号3排在第二位)有关?? |
啊,是这样的。junk是完全不算的(同camera的样本)。 另外,你打错了,,rows_good = [1,3,4] |
@layumi 这博士你好。evaluate_gpu.py中的第53行, cmc[rows_good[0]:] = 1 这句代码,我感觉不太合适。cmc的长度是36935,是去除junk_index之前的index的长度;而rows_good所代表的索引是去除junk_index之后的index的,此时的index,在经过第45行的“index = index[mask]”之后,已经变短了,为36875。那“ cmc[rows_good[0]:] = 1”这句代码是不是不太合适啊??
The text was updated successfully, but these errors were encountered: