简体   繁体   English

如何使用自定义数据集运行 Keras Retinanet 对象检测代码示例?

[英]How to run Keras Retinanet object detection code example with custom dataset?

I'm trying to implement the Keras Retinanet example from the source:我正在尝试从源代码实现 Keras Retinanet 示例:

https://keras.io/examples/vision/retinanet/ https://keras.io/examples/vision/retinanet/

and I do get the example run perfectly with the COCO-dataset.我确实让示例与 COCO 数据集完美运行。 Now I would like to run the example with my own custom object detection dataset.现在我想用我自己的自定义对象检测数据集运行这个例子。 After doing couple of days some research on the web it still isn't that clear for me, how I would need to edit the example code to use my own dataset (that is a set of .jpg images + annotation .xml files produced with labelImg ).在网上做了几天的研究后,对我来说仍然不是很清楚,我需要如何编辑示例代码以使用我自己的数据集(这是一组 .jpg 图像 + 注释 .xml 文件,用标签图像)。

I suspect I would need to get familiar with the tensorflow_dataset-library ?我怀疑我需要熟悉tensorflow_dataset-library My guess is that this part in the code is where I should do the customization for my own dataset:我的猜测是代码中的这部分是我应该为自己的数据集进行自定义的地方:

https://keras.io/examples/vision/retinanet/#load-the-coco2017-dataset-using-tensorflow-datasets https://keras.io/examples/vision/retinanet/#load-the-coco2017-dataset-using-tensorflow-datasets

Any advices or good references worth investigating to get the Keras Retinanet object detection example working with my own dataset?为了让 Keras Retinanet 对象检测示例与我自己的数据集一起工作,是否有任何值得研究的建议或好的参考资料?

I found one nicely instructed collab link for the implementation of Retinanet: https://colab.research.google.com/github/benihime91/pytorch_retinanet/blob/master/demo.ipynb我找到了一个用于 Retinanet 实施的精心指导的协作链接: https ://colab.research.google.com/github/benihime91/pytorch_retinanet/blob/master/demo.ipynb

Also there is another link: https://www.programmersought.com/article/73514120308/还有另一个链接: https : //www.programmersought.com/article/73514120308/

Both of the above pasted links are well described and are meant for custom dataset.上面粘贴的两个链接都有很好的描述,适用于自定义数据集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM