# rank_evaluation **Repository Path**: wrinkles/rank_evaluation ## Basic Information - **Project Name**: rank_evaluation - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-23 - **Last Updated**: 2024-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rank_evaluation 重识别精度测试 ## 环境依赖 - abseil-cpp ## 编译 设备中编译常用指令: ```shell cd rank_evaluation mkdir build && cd build cmake .. make ``` ## 运行 ```shell cd rank_evaluation/build ./rank_evaluation --rank=5 --ground_truth=../data/rank_5_ground_truth_test.txt --result=../data/rank_5_result_test.txt --result_log=../data/rank_5_evaluation_test.txt --dataset_num=200 --test_num=20 ``` ## 参数说明 ```c++ (int, rank, 5, "Rank"); (std::string, ground_truth, "../data/rank_5_ground_truth_test.txt", "ground_truth path"); (std::string, result, "../data/rank_5_result_test.txt", "reid_result path"); std::string, result_log, "../data/rank_5_evaluation_test.txt", "result_log path"); (int, dataset_num, 200, "数据集数量"); (int, test_num, 20, "测试集数量"); ``` ## ground_truth示例 - 每一行首个数字为**测试图像序号**,后续为与该**测试图像目标**相同的的**数据集图像序号** - 行数为测试图像数量,每行序号至少为2个,即至少一个**测试图像**与一个**数据集图像**序号 ``` 1001 28 182 168 26 194 183 45 127 62 20 110 56 38 199 192 1002 32 146 195 197 22 98 160 161 60 29 1 85 23 184 128 159 1003 170 43 187 137 136 80 152 149 1004 95 79 35 61 142 7 64 175 10 30 165 139 153 191 99 1005 133 132 8 1006 77 154 11 82 92 90 130 185 151 1007 143 33 129 24 100 155 115 69 118 162 4 52 102 189 140 1008 117 47 169 198 51 67 163 49 3 1009 44 70 40 124 156 71 14 167 119 147 58 113 42 114 106 16 1010 31 94 78 68 186 88 63 173 125 34 121 53 131 138 144 150 1011 46 112 166 93 108 171 89 196 164 73 174 172 87 27 37 57 1012 103 48 9 176 101 1013 84 181 50 200 193 1014 109 178 74 157 55 12 111 65 76 134 1015 190 188 116 126 2 1016 96 39 18 6 54 1017 21 122 105 177 66 59 123 120 15 141 104 13 75 41 148 25 1018 97 180 5 19 158 1019 36 135 86 83 179 1020 81 107 72 91 145 17 ``` ## rank_5_result示例 - 每一行首个数字为**测试图像序号**,后续为与该**测试图像目标**相同的的**数据集图像序号** - 行数为测试图像数量,每行序号应为5个,即至少一个**测试图像**与5个**数据集图像**序号,以满足Rank-5的测试 - 目标序号需按照行数,从小到大排列 ``` 1001 28 182 168 26 194 1002 32 146 195 197 22 1003 170 43 187 137 136 1004 133 132 8 1005 95 79 35 61 142 7 1006 77 154 11 82 92 90 1007 117 47 169 198 51 67 1008 143 33 129 24 100 155 1009 44 70 40 124 156 71 14 1010 31 94 78 68 186 88 63 1011 46 112 166 93 108 171 1012 103 48 9 176 101 1013 84 181 50 200 193 1014 109 178 74 157 55 12 111 6 1015 190 188 116 126 2 1016 96 39 18 6 54 1017 21 122 105 177 66 59 123 1018 97 180 5 19 158 1019 36 135 86 83 179 1020 81 107 72 91 145 17 ```