【问题标题】:Return Json or something pretty from tensorflow Object Detection API从 tensorflow 对象检测 API 返回 Json 或漂亮的东西
【发布时间】:2019-02-02 20:57:02
【问题描述】:

我正在使用 tensorflow 对象检测 API,我想知道在所有 python 脚本中是否有一个会返回图像中存在哪些标签。喜欢返回 Json 或类似的东西?

【问题讨论】:

    标签: python json api tensorflow object-detection


    【解决方案1】:

    没有直接生成 JSON 的 python 脚本,但是有一个 Jupyter notebook 可以演示如何进行推理:

    https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb

    或者,如果您想使用预先存在的脚本,这个 Jupyter 笔记本展示了如何使用生成 TFRecord 文件的脚本: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/oid_inference_and_evaluation.md

    然后可以使用tf_example_decoder.py 中的代码作为参考进行处理: https://github.com/tensorflow/models/blob/master/research/object_detection/data_decoders/tf_example_decoder.py

    【讨论】:

    • 但是那个不是 json 脚本,而是一些相当密集的东西,我不知道如何解释
    【解决方案2】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-10
      • 2013-08-23
      • 2019-03-12
      • 2021-12-05
      • 2017-12-02
      • 1970-01-01
      • 1970-01-01
      • 2015-10-23
      相关资源
      最近更新 更多