Closed KaiyangZhou closed 6 years ago
@KaiyangZhou Thank you so much for the suggestions! Actually I have compared the 2048d and 751d before and the latter leads to slightly better performance in general. So in the implementation we use 751d directly.
@Cysu Thank you!
The register_forward_hook()
also works which was implemented already, but I find using if not self.training
is easier.
Hi Tong,
Thanks very much for this great project! I believe this will significantly facilitate the research in person reid.
I have a small suggestion regarding the feature extraction stage in the evaluation mode. When the
evaluator.evaluate()
is executed, the first step is to extract features followed by construction of the distance matrix used to compute mAPs. However, the features extracted inmodel.eval()
remains the same as those from the training phase, i.e. both are pre-logits produced by thex = self.classifier(x)
. This is not expected as we want the features to come out from the 'real' feature extractor (resulting in 2048-d vectors in the resnet) instead of the 751-d pre-logit vectors from the classifier (in case of market1501). Therefore, I suggest to modify thedef forward(self, x)
that will look like: