问题描述
我是物体检测领域的超级新手。
我想知道是否有人可以以某种方式帮助我如何下载和使用对象检测数据集(例如coco或pascal)。即使下载了数据集后我也去他们的网站时,我觉得我不知道该怎么办...
我知道这个问题很愚蠢,但是提示启动可能会非常有用。
谢谢
I am super new to the field of object detection.I was wondering if anyone can help me somehow on how I can download and use the object detection datasets such as coco or pascal. When I go to their website even after downloading the datasets i feel like i dont know what should i do with them...I know this question is stupid, but a hint to start can be super useful.Thanks
推荐答案
我正在使用:Ubuntu 16.04上的python 3.5
首先,以下是您要下载并解压缩的三件事:
1)Cocoapi-我尝试使用正式版本,但不起作用(对我来说,可能是某些版本问题)。因此,我正在使用以下版本之一(我无法使用已使用过的版本):
(官方)
2)下载COCO图像。我建议下载评估集只是为了先尝试一下。
3)为您下载的该图像集下载相应的注释。
*两者都包括) 3)可以从COCO官方网站下载。
I'm using: python 3.5 on Ubuntu 16.04
Firstly, there are three things you'd want to download and unzip:
1) Cocoapi - I tried using the official version but it doesn't work (for me, probably some version issues). So I'm using one of these versions (I can't rmb which one I've used):
https://github.com/philferriere/cocoapi
https://github.com/cocodataset/cocoapi (official)
2) Download COCO images. I'd recommend downloading a valuation set just to try things out first.
3) Download the corresponding annotations for that image set that you've downloaded.
*Both 2) and 3) can be downloaded from the COCO official site.
安装:
将cocoapi解压缩到您选择的文件夹中。然后,将注释和图像解压缩到该未压缩的cocoapi文件夹中。并将它们命名为注释和图像。我使用的是Ubuntu 16.04,因此我使用终端浏览到... / cocoapi-master / PythonAPI文件夹。然后,运行make。请注意, ...部分是您将cocoapi解压缩到的文件夹的路径。对我来说,解压缩后的文件夹称为cocoapi-master。但是,根据下载的版本,它可能会被命名为其他名称。
接下来,我在PythonAPI文件夹中嵌套了自己的python脚本。复制这些脚本,然后从它们在其官方Github页上提供的python演示中进行编辑。
Installing:
Unzip the cocoapi to a folder of your choice. Then, unzip the annotations and images into that unzipped cocoapi folder. And name them as "annotations" and "images". I'm using Ubuntu 16.04 so I used the terminal to navigate to the .../cocoapi-master/PythonAPI folder. Then, run make. Note that the "..." part is the path to the folder you unzipped your cocoapi to. For me, the unzipped folder is called cocoapi-master. But depending on the version you downloaded, it could be named something else.
Next, I had my own python scripts nested in the PythonAPI folder. These scripts are copied and then edited from the python demos which they've provided on their official Github page.
潜在问题-由于matplotlib的某些后端兼容性问题,图像可能无法正确显示。如果您有该问题,则可能要参考以下内容:
Potential issues - because of some backend compatibility issues with matplotlib, the images might not display properly. If you have that issue you might want to refer to this:
No image pop-up or display for plt.imshow() and plt.show()
希望这对您有用! :)
Hope this works for you! :)
这篇关于如何下载和使用对象检测数据集(例如coco或pascal)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!