↓ 1 callersMethodconvert_bboxes_to_stringConvert bounding boxes to a string. xmin, ymin, xmax, ymax are mapped to v0, v1, v2, v3 special tokens. Args: bboxes: Bo
fourm/data/modality_transforms.py:703
↓ 1 callersMethodconvert_detection_instanceConvert instances dict to list of lists where each list takes the form: [xmin, ymin, xmax, ymax, class_name, score]
fourm/data/modality_transforms.py:659
↓ 1 callersMethodencode_image(self, image, return_side_out=False, return_all_tokens=False, return_all_final_tokens=False, **kwargs)
fourm/utils/clip/model.py:404
↓ 1 callersFunctiongenerate_coord_tokensExtra tokens that are used for bounding box coordinates, xmin, ymin, xmax, ymax, but also other modalities like color maps, metadata, or pose
fourm/utils/tokenizer/text_tokenizer.py:21