Skip to content

gen_gt_data.py中的不规则数组 #37

@Heu-cc

Description

@Heu-cc

我在运行gen_gt_data.py生成08序列的真值文件时代码报错:Traceback (most recent call last):
File "/home/cc/python/OverlapTransformer-master/tools/utils/gen_gt_data.py", line 66, in
all_rows_array = np.array(all_rows)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4071,) + inhomogeneous part.原因大概是all_rows的子元素长度不一致,这里如果把all_rows_array = np.array(all_rows)改为all_rows_array = np.array(all_rows,dtype=object)创建对象数组对后续处理会有影响吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions