↓ 1 callersFunctionmask_to_box compute bounding box given an input mask Inputs: - masks: [B, 1, H, W] masks, dtype=torch.Tensor Returns: - box_coords: [B, 1,
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:66
↓ 1 callersMethodmm_conv_prepare_inputs_labels_for_multimodal(
self, input_ids, attention_mask, past_key_values, labels, images
)
unigeoseg/model/language_model/llava_phi.py:1072