Giter Site home page Giter Site logo

evaluate_gpu.py about aicity-reid-2020 HOT 5 OPEN

layumi avatar layumi commented on May 18, 2024
evaluate_gpu.py

from aicity-reid-2020.

Comments (5)

layumi avatar layumi commented on May 18, 2024

你好,index里面存的是序号, 通俗地说,是排序的顺序,变长变短不影响 。 不需要和cmc的长度一致。

from aicity-reid-2020.

s20163081161 avatar s20163081161 commented on May 18, 2024

你好,index里面存的是序号, 通俗地说,是排序的顺序,变长变短不影响 。 不需要和cmc的长度一致。

但是投票的时候不是根据index里的序号来的,如下代码所示
“mask = np.in1d(index, good_index)
rows_good = np.argwhere(mask==True)
rows_good = rows_good.flatten()

cmc[rows_good[0]:] = 1”

from aicity-reid-2020.

layumi avatar layumi commented on May 18, 2024

我们捋一下。

rows_good 已经是删除过同camera里面的index了,
然后这个index 还是原始cmc里面排序的序号。(删除一些index,不影响序号啊,只是可能断号了。比如原来【5,3,2,4,1】 现在变成【5,3,1】少了2,4,但是这个序号还是能用来索引)
所以能用在cmc上。

from aicity-reid-2020.

s20163081161 avatar s20163081161 commented on May 18, 2024

我们捋一下。
rows_good 已经是删除过同camera里面的index了,
然后这个index 还是原始cmc里面排序的序号。(删除一些index,不影响序号啊,只是可能断号了。比如原来【5,3,2,4,1】 现在变成【5,3,1】少了2,4,但是这个序号还是能用来索引)
所以能用在cmc上。

我是这样理解的。

假设:
原始index = [6,7,5,3,2,4,1],则 cmc = [0,0,0,0,0,0,0] ,7位

假设junk_index = [6,7],则去除junk_index后:
index =[5,3,2,4,1]

假设good_index = [3,4,1],则:
mask = [false,true,false,true,true]
rows_good = [2,4,5],为mask为true的索引

经过“cmc[rows_good[0]:] = 1”,得
cmc = [0,1,1,1,1,1,1]

也就是说,cmc最终的赋值,跟index里面的序号没关,只和序号在index中的位置(比如序号3排在第二位)有关??

from aicity-reid-2020.

layumi avatar layumi commented on May 18, 2024

啊,是这样的。junk是完全不算的(同camera的样本)。
所以你看新的 index =[5,3,2,4,1]
对应的 cmc = [0,1,1,1,1,1,1]

另外,你打错了,,rows_good = [1,3,4]

from aicity-reid-2020.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.