Skip to content

Pin context media

PinContextMediaSetting #

PinContextMediaSetting(value: bool = True)

Bases: RapidataSetting

Shows the context image or video next to the task for the whole rapid, instead of inside the collapsible context drawer.

Useful when annotators have to judge the assets against a reference, e.g. comparing two videos to a reference video. A multi-asset context is reduced to its first asset. Search terms: reference, context video, context image, alongside, side by side, pinned, thumbnail.

Supported task types: all.

Parameters:

Name Type Description Default
value bool

Whether to show the context media next to the task. Defaults to True.

True
Source code in src/rapidata/rapidata_client/settings/pin_context_media.py
def __init__(self, value: bool = True):
    if not isinstance(value, bool):
        raise ValueError("The value must be a boolean.")

    super().__init__(key="media_context_persistent_thumbnail", value=value)