-
Notifications
You must be signed in to change notification settings - Fork 130
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
Have you fine-tune the Reid model on MOT dataset? #8
Comments
No, the reid model was trained on a combination of market1501 and duke reid dataset. |
I found that the order of magnitudes of our Reid feature are different, maybe I need to normalize the Reid feature |
Hi @longcw , after I normalize my Reid feature, I found the distribution of dists changes from approximately [0.1, 1.5] to [0.003, 0.08] (my feature size is 1x2048, and the original is 1x512). I think I only need to modify the min_ap_dist value and I actually tried some(0.05,0.06, etc.), but the result's always worse than the original ones. It's strange because I didn't change any other part and my Reid model is tested to be stronger on Market1501(90.0% rank-1), do you have any reminder on this point? |
I am wondering why the distance changed to [0.003, 0.08] after you normalized the feature. L2 distance on two normalized features is same to the cosine distance (only different from some constants). So it should be in [0, 1] or something similar. Second, I also tested resnet50 model with about 90% rank-1 on market1501 while the tracking performance is similar or even worse. I tried to train the model on market1501 and test it on duke and only got about 20%-30% rank-1. Reid models are very easy to overfit on the training set. So I train the model on three datasets to achieve better generation ability. Worse reid performance on the training set doesn't imply a worse tracking result. I think this is one reason you got a worse result. To improve the model for tracking, the first thing is to improve the generation ability rather than achieve a higher score on the training set, unless you train the model on the tracking dataset directly. |
Thank you, you've got a great point. I think the distance range still in [0,1], but the numbers are really small. I gonna train the Reid model on more dataset and let you know the results~ |
I didn't normalize the feature in training, that's the only reason I can think about... |
I change the value of the min_ap_dist and visualize the result on MOT17, it seems not bad... |
Hi, I tried with a reid model using normalized feature in training, the distance value is still small. |
Maybe you can try to plot the distribution of positive and negative distances as I showed before, to find the best threshold and check the range. |
So I have a question,how to train the reid model for MOT dataset or others? fine-tune the trained Reid model(we have trained on Market1501,Duke etc)on the MOT dataset or train on MOT dataset from other imgnet pretrain model? @longcw |
@longcw I plot the cosine distance of MOT-02 with my Reid model: |
@ I'm trying to reproduce your reid model and I notice you define 'SpatialCrossMapLRN' in googleNet, what is this used for? |
@Kewenjing1020 @ygren The reid model was trained by my pytorch re-implementation of https://github.com/zlmzju/part_reid. Maybe I can share the training code later if you are interested in it. |
@longcw Your work is very interesting!I'm very interested in your training process.Looking forward to your sharing so that I can reproduce your results.Thx! |
Hi @longcw, @Kewenjing1020 can you tell me how to re-train Patchclassifier from scratch? |
@shibu38 Hi, I didn't try to reproduce patch classifier yet. |
@longcw I tried to retrained reid by adding a classifier after your network and fine-tune from your model, but the code always corrupts. Then I removed the LRN layer, then it runs well but with a really bad result... |
@Kewenjing1020 Hi, do you have any idea how to do that?? or Do you have any plan in future to that?? |
@longcw |
Is googleNet for Reid? And squeezeNet for what? |
Are they both from https://github.com/zlmzju/part_reid? |
Please read the paper.
Crazy-stones <notifications@github.com> 于2019年5月10日周五 下午5:22写道:
… Are they both from https://github.com/zlmzju/part_reid?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABPJJAARU73XSA4OFUMYQFDPUU5D7ANCNFSM4F3PKZYA>
.
|
I generally know that you get the re-id model from https://github.com/zlmzju/part_reid which uses part-aligned reid and GoogleNet. But I still do not understand why you need two models and what are their functions? |
@longcw Can you solve my question? Thanks! |
Section 3.2, 3.4 here |
Hi @longcw , I've replaced the Reid part of extracting features by my own trained model, the evaluation result gets worse. Have your fine-tune the Reid model on the MOT dataset?
The text was updated successfully, but these errors were encountered: