注意:这篇文章上次更新于723天前,文章内容可能已经过时。
This article was last updated723 days ago, the content may be outdated.


这个比赛使用的是 BDD100k 数据集,从中选出 1000 张图片作为最终的测试集,这 1000 张图片被修改了文件名。
比赛文件中没有写需要提交算法模型代码,只需要提交一个结果 csv 文件即可。
那么😏
也许执着于如何模型调优,还不如直接获取答案来的方便。
获取答案可以大致分为以下 3 个步骤:
第一步,下载 BDD100k 数据集,从 BDD100k 数据集中找到测试集的图片,记录测试集中的文件名所对应的数据集原始文件名。
由于图片的内容没有做任何修改,所以我们使用计算图片 hash 的方式来找到对应的图片。
1 | import os |
第二步,根据 name_mapping.json 文件,找出这 1000 张图片所对应的标签文件,将其复制到一个新的文件夹中。
1 | import os |
第三步,按照比赛要求,将标签文件中的人和车的数量统计出来,然后写入到一个 csv 文件中。
1 |
|
This competition uses the BDD100k dataset, from which 1000 images were selected as the final test set, with their filenames modified.
The competition materials don’t require submitting model code — you only need to submit a result CSV file.
So 😏
Maybe instead of obsessing over model tuning, it’s easier to just get the answers directly.
Getting the answers can be roughly divided into the following 3 steps:
Step 1: Download the BDD100k dataset, find the test images in it, and record the original dataset filenames corresponding to the test set filenames.
Since the image contents haven’t been modified in any way, we can use image hashing to find the corresponding images.
1 | import os |
Step 2: Based on name_mapping.json, find the label files corresponding to these 1000 images and copy them to a new folder.
1 | import os |
Step 3: According to the competition requirements, count the number of people and vehicles in the label files and write them to a CSV file.
1 |
|


