X-AnyLabeling custom2dota报错:for shape in data["shapes"]: TypeError: string indices must be integers

修改为:
class RotateLabelConverter(BaseLabelConverter):
def custom_to_dota(self, input_file, output_file):
with open(input_file, "r", encoding="utf-8") as f:
data = json.load(f)
posted @ 2024-05-29 10:08  彭城老朽  阅读(8)  评论(0编辑  收藏  举报