文章 ID: 000059804 內容類型: 錯誤訊息 最近查看日期: 2023 年 06 月 16 日

執行 Pot -C SR-fsrjson 時,錯誤「AttributeError:'DatasetConversionInfo'物件沒有屬性的「識別碼」

環境

OpenVINO 2021.3

BUILT IN - ARTICLE INTRO SECOND COMPONENT
摘要

在OpenVINO™檔案中編輯程式碼的解決方法。

描述
  • Ran POT 命令: pot -c SR-fsrcnn.json
  • 輸出:屬性說明器: 'DatasetConversionInfo' object has no attribute 'identifier'
解決方法
  • 在此位置變更 程式碼號:

    openvino_2021.3.394\deployment_tools\tools\post_training_optimization_toolkit\libs\open_model_zoo\tools\accuracy_checker\accuracy_checker\annotation_converters\_init_.py

  • 調整 此程式碼:

    from .convert import make_subset, save_annotation, analyze_dataset, DatasetConversionInfo
    到此行:
    from accuracy_checker.annotation_converters.convert import make_subset, save_annotation, analyze_dataset, DatasetConversionInfo

相關產品

本文章適用於 1 產品

這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。