raillabel.filter.exclude_attributes_filter module

class raillabel.filter.exclude_attributes_filter.ExcludeAttributesFilter(attributes: dict[str, bool | float | str | list | None])

Bases: _AnnotationLevelFilter

Filter out all annotations in the scene, that do have matching attributes.

If an attribute has None as the value, all annotations are included, that do not have this attribute. If the value is anything other than None, all annotations are included that do not have the attribute or where the value does not match.

_abc_impl = <_abc._abc_data object>
attributes: dict[str, bool | float | str | list | None]
passes_filter(_: UUID, annotation: Bbox | Cuboid | Poly2d | Poly3d | Seg3d, __: Scene) bool

Assess if an annotation passes this filter.