def int_array_to_rgb(mask):
    """Converts a 2D hex integer mask array to an RGB mask array.

    Args:
        mask: a 2D integer mask array

    Returns:
        an RGB mask array
    """
    return np.stack(
        [(mask >> 16) & 255, (mask >> 8) & 255, mask & 255],
        axis=2,
        dtype=np.uint8,
    )
Converts a 2D hex integer mask array to an RGB mask array.

    Args:
        mask: a 2D integer mask array

    Returns:
        an RGB mask array
    
fiftyone/core/fields.py