GithubHelp home page GithubHelp logo

Comments (20)

Gavin666Github avatar Gavin666Github commented on July 20, 2024 1

Combining softmax loss with metric learning loss to speed up the convergence is also a popular method.

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

open-reid,batch size 256可以跑到rank-1 84.5%,参考这里. 印象中应该是在open-reid划分的Market1501上跑的实验,而不是在标准划分上跑的。

虽然我用Python 2跑的,你可以换成Python 3试一下,如果还不行那有可能跑出来就是那样吧。

也可以参考一下我这个工程里的一些设定,和open-reid稍有不同。进一步我做了一个小trick,可以跑到89%。

分类loss和triplet loss结合我还是没解决,你什么时候解决了跟我说一下,3q : )

from alignedreid-re-production-pytorch.

Niculuse avatar Niculuse commented on July 20, 2024

我试过2块显卡跑256batch size 还是低了几点,跑不到那个水平。
谢谢你了!

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

hi
how about your triplet loss?

above is my loss result , is it right ? the value is small?
Train loss is triplet loss

Step: 79, Learning rate: 0.009942, Train loss: 0.157365
('pos_loss : ', 0.80680853)
('neg_loss : ', 1.0257512)

Step: 5409, Learning rate: 0.007231, Train loss: 0.057204
('pos_loss : ', 1.3745451)
('neg_loss : ', 1.9384971)

from alignedreid-re-production-pytorch.

liliangqi avatar liliangqi commented on July 20, 2024

@huanghoujing 您这里的trick具体是指什么呢

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

@liliangqi 这里的trick就是把残差网络conv5的stride从2改为1,这样改过之后average pooling之前特征的分辨率就加倍了. 这个增加分辨率的做法是从文章Beyond Part Models: Person Retrieval with Refined Part Pooling看到的。

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

@Phoebe-star I think your loss value 0.057204 is not small enough yet. You can also calculate how many triplets satisfy the margin inequality distance(anchor, positive) + margin < distance(anchor, negative), which I think is a better indicator.

from alignedreid-re-production-pytorch.

Niculuse avatar Niculuse commented on July 20, 2024

@huanghoujing 大神有没有看过Harmonious Attention Network for Person Re-identification 这篇文章,如果有的话,我想请教些问题。

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

Step: 5409, Learning rate: 0.007231, Local Train loss: 0.29
('local pos_loss : ', 12.745451)
('local neg_loss : ', 11.384971)

I find the local feature doesn't effect .
the local feature use the
image
S (7 ,7) is the final distance , but its value is big , like 12.46782 or 11.14258
I think your local feature ,it is doing 7x7 =49 times, because you use the " for loop" (python) ,

but I watch the image in the paper , "AlignedReID: Surpassing Human-Level Performance in Person Re-Identificat"
image

it seem like do 7+6+5+4+3+2+1=28 times

answer can English or 中文 ,thanks

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

@Phoebe-star The paper explains how to calculate the shortest distance well, and I just follow the paper. So any other explanation I would like to give here is just a duplicate. Maybe I wouldn't be able to get things right for you. Sorry for that.

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

@Niculuse 不要称呼大神(逃
我觉得你直接问论文作者比较好,由于论文篇幅有限,作者肯定也有很多细节没机会详细解释,所以正是可以请教的地方。问我的话,我只能乱猜。

from alignedreid-re-production-pytorch.

Niculuse avatar Niculuse commented on July 20, 2024

@huanghoujing 好的,感谢!

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

ok, thank you ,huanghoujing
but my local loss is right? It is a big value 12.745451 , the training step is about 5409 or 10000
local pos_loss : ', 12.745451)

sorry,because I can not test your network, I can not see your local value.

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

If this value 12.745451 is loss, then it's large.

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

how about your local loss?

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

Similar to global loss, local loss can also decreases to near 0, e.g. 0.0003.

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

I know the local loss will be decreases to near 0. how about the positive local loss and the negative local loss?
where is the local loss compute method ? I find you design two method . one is numpy ,another is torch

from alignedreid-re-production-pytorch.

Phoebe-star avatar Phoebe-star commented on July 20, 2024

#2
hi ,you say " distance of two unit-length vectors falls in range [0, 2], "
why not in the [0,1]? because normalization

and why after Equation (1), the distance is in range [0, 0.76]?

thanks you , god

from alignedreid-re-production-pytorch.

JackeyWang777 avatar JackeyWang777 commented on July 20, 2024

您好,请问一下分类loss和triplet loss结合会遇到什么问题呢?

from alignedreid-re-production-pytorch.

huanghoujing avatar huanghoujing commented on July 20, 2024

两个loss结合理论上会更好。但是我在Triplet Loss的performance已经很高的设定下再加分类loss,结果并没有提升,我弄不好这个。

from alignedreid-re-production-pytorch.

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.