Skip to content

【功能需求】加载数据集标注时提供进度展示 #279

Closed
@lartpang

Description

@lartpang

因为我使用的功能涉及到了Mask,实际相关代码在这里:

for image_filename in image_file_list:
if image_filename.endswith(".json"):
continue
label_filename = osp.splitext(image_filename)[0] + ".png"
data_filename = osp.splitext(image_filename)[0] + ".json"
if label_filename not in label_file_list:
continue
input_file = osp.join(label_dir_path, label_filename)
output_file = osp.join(output_dir_path, data_filename)
image_file = osp.join(image_dir_path, image_filename)
converter.mask_to_custom(
input_file=input_file,
output_file=output_file,
image_file=image_file,
mapping_table=mapping_table,
)

由于Mask读取较慢,大量数据导入时这里会阻塞界面,或许提供一个进度条会更好?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions