Skip to content

"To check that no frame contains overlapping masks" : Can we use mots_tools for overlapping masks? #14

@PanaddaK

Description

@PanaddaK

Hi, following your code I found that

  1. In mots_common.io => load_txt(path)
    You have to check that no frame contains overlapping masks...

    if frame not in combined_mask_per_frame:
    combined_mask_per_frame[frame] = mask
    elif rletools.area(rletools.merge([combined_mask_per_frame[frame], mask], intersect=True)) > 0.0:
    assert False, "Objects with overlapping masks in frame " + fields[0]
    else:
    combined_mask_per_frame[frame] = rletools.merge([combined_mask_per_frame[frame], mask], intersect=False)
    objects_per_frame[frame].append(SegmentedObject(
    mask,
    class_id,
    int(fields[1])

  2. Is it possible to use mots_tools with overlapping masks/objects? How?

  3. I've tried to run mots_tools with my data that contain over masks by removing the conditions checking for overlapping masks. The tools can run without any error. I'm not sure whether the result was correct or not.

Please give me some advice on this. Thank you.

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