def rank(dist): r = cmc(dist, queryset.ids, testset.ids, queryset.cameras, testset.cameras, separate_camera_set=False, single_gallery_shot=False, first_match_break=True) m_ap = mean_ap(dist, queryset.ids, testset.ids, queryset.cameras, testset.cameras) return r, m_ap
def rank(dist): r = cmc(dist, self.queryset.ids, self.testset.ids, self.queryset.cameras, self.testset.cameras, self.queryset.clothes, self.testset.clothes, separate_camera_set=False, single_gallery_shot=False, first_match_break=True, cloth_changing_settings=False) m_ap = mean_ap( dist, self.queryset.ids, self.testset.ids, self.queryset.cameras, self.testset.cameras, self.queryset.clothes, self.testset.clothes, cloth_changing_settings=False) return r, m_ap