Comments (5)
你好,index里面存的是序号, 通俗地说,是排序的顺序,变长变短不影响 。 不需要和cmc的长度一致。
from aicity-reid-2020.
你好,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.
我们捋一下。
rows_good 已经是删除过同camera里面的index了,
然后这个index 还是原始cmc里面排序的序号。(删除一些index,不影响序号啊,只是可能断号了。比如原来【5,3,2,4,1】 现在变成【5,3,1】少了2,4,但是这个序号还是能用来索引)
所以能用在cmc上。
from aicity-reid-2020.
我们捋一下。
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.
啊,是这样的。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)
- cropped_aicity folder order??? HOT 1
- camera-aware model HOT 2
- 数据集问题 HOT 9
- mAP calculation HOT 1
- ff = torch.FloatTensor(n,512).zero_().cuda() HOT 1
- what is the mean of "gallery" in the test_2020.py file.
- 关于prepare_2020生成的gallery这个文件夹 HOT 4
- Cannot download feature extraction models HOT 4
- train_2020.py problem HOT 1
- where is SE_imbalance_s1_384_p0.5_lr2_mt_d0_b24+v+aug/opts.yaml HOT 5
- 训练问题 HOT 1
- 关于VeRi-776 应用的问题 HOT 5
- 使用arc loss训练,loss不收敛,acc较低。 HOT 1
- batch_size取24,一个steps运行492ms,这个正常吗?想知道作者一个steps的运算时间是多少 HOT 1
- train_2020.py运行后报错Couldn't find any class folder in ./data/pytorch2020/train HOT 4
- 可视化 HOT 1
- 请问这份代码的python和pytorch版本,以及其他重要包的版本,第一条评论请忽略
- --init_name pretrained model
- fine tuning 阶段用到的train_2020_ft.py似乎没有与论文描述一致:在前几个epoch中只更新classifier的参数
- 关于车辆特征提取的预训练模型 about pretrained model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aicity-reid-2020.