identifier
stringlengths
24
117
embedding
listlengths
2.56k
2.56k
tokens
listlengths
4
444
conditional_detr/image_processing_conditional_detr.py:prepare_coco_detection_annotation
[ -0.0001732795499265194, 0.03269803151488304, -0.011089891195297241, -0.020007535815238953, -0.0007860103505663574, 0.020807838067412376, 0.004916137550026178, -0.05213392153382301, 0.013433631509542465, 0.009203466586768627, 0.026409948244690895, 0.04733211547136307, 0.0007467098184861243, ...
[ "False", "Model_coco_detection_annotation", "None", "annotations", "append", "area", "as_tensor", "bbox", "boxes", "category_id", "class_labels", "classes", "clip", "convert_coco_poly_to_mask", "def", "device", "dtype", "else", "float32", "for", "if", "image", "image_heig...
conditional_detr/image_processing_conditional_detr.py:masks_to_boxes
[ 0.00009174235310638323, -0.03319661691784859, -0.018630754202604294, -0.016824135556817055, 0.00048694017459638417, 0.04019726440310478, 0.019195321947336197, -0.04132639989256859, 0.020663199946284294, 0.012307588942348957, 0.0031051256228238344, 0.0009103664197027683, -0.001545505714602768...
[ "Model", "Model_to_boxes", "arange", "def", "device", "dtype", "float32", "h", "if", "ij", "indexing", "max", "meshgrid", "min", "numel", "return", "shape", "stack", "tensor", "torch", "unsqueeze", "view", "w", "where", "x", "x_mask", "x_max", "x_min", "y", ...
conditional_detr/image_processing_conditional_detr.py:rgb_to_id
[ 0.00020823883824050426, -0.020769797265529633, 0.020192857831716537, -0.03830873593688011, 0.0011827244888991117, 0.011019530706107616, 0.03230857104063034, -0.041539594531059265, 0.020769797265529633, 0.03738563507795334, 0.04730898141860962, -0.014423470012843609, -0.003923183772712946, ...
[ "Model_to_id", "Tensor", "and", "color", "def", "dtype", "if", "int", "int32", "isinstance", "len", "return", "shape", "to", "torch", "uint8" ]
conditional_detr/image_processing_conditional_detr.py:prepare_coco_panoptic_annotation
[ -0.00023503665579482913, 0.02457299269735813, -0.00453566899523139, -0.002411368303000927, -0.0009616767056286335, 0.03559638932347298, 0.016994405537843704, -0.04639013484120369, 0.009473233483731747, 0.006860917434096336, 0.01779819466173649, 0.04271566867828369, -0.0036457593087106943, ...
[ "Model_coco_panoptic_annotation", "None", "Path", "True", "annotation_path", "area", "as_tensor", "bool", "boxes", "category_id", "channel_dim", "class_labels", "def", "device", "dtype", "else", "file_name", "float32", "for", "get_image_size", "id", "ids", "if", "image"...
conditional_detr/image_processing_conditional_detr.py:ConditionalDetrImageProcessor
[ -0.0002781220537144691, 0.049063581973314285, -0.016316493973135948, 0.025672804564237595, -0.0013478222535923123, 0.01734340563416481, 0.011181932874023914, -0.044271327555179596, 0.0019397230353206396, 0.021222852170467377, 0.01112488191574812, 0.043814919888973236, -0.0014405295951291919,...
[ "AnnotationFormat", "Any", "BILINEAR", "BatchFeature", "COCO_DETECTION", "COCO_PANOPTIC", "ChannelDimension", "FIRST", "False", "Got", "IMAGENET_DEFAULT_MEAN", "IMAGENET_DEFAULT_STD", "Make", "ModelImageProcessor", "ModelImageProcessorKwargs", "NEAREST", "None", "PILImageResampling...
conditional_detr/image_processing_pil_conditional_detr.py:ConditionalDetrImageProcessorKwargs
[ -0.00031347491312772036, 0.026324644684791565, -0.023425454273819923, 0.013510224409401417, -0.0017467618454247713, 0.015075786970555782, 0.030847379937767982, -0.055200573056936264, 0.01403207890689373, 0.025280935689806938, 0.013162322342395782, 0.03200705721974373, 0.0021888883784413338, ...
[ "AnnotationFormat", "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_convert_annotations", "format", "r", "str", "total" ]
conditional_detr/image_processing_pil_conditional_detr.py:convert_coco_poly_to_mask
[ -0.00002289688927703537, -0.005064880941063166, -0.012178477831184864, -0.003073073923587799, 0.0001956239138962701, 0.0012519930023699999, 0.005804695188999176, -0.07511958479881287, 0.024015503004193306, -0.004751882515847683, 0.02811293490231037, 0.01912134885787964, -0.001849535154178738...
[ "ImportError", "Model_coco_poly_to_mask", "None", "any", "append", "asarray", "axis", "coco_mask", "decode", "def", "dtype", "else", "except", "for", "frPyObjects", "height", "if", "in", "len", "mask", "masks", "np", "polygons", "return", "rles", "segmentations", ...
conditional_detr/image_processing_pil_conditional_detr.py:prepare_coco_detection_annotation
[ -0.00017315206059720367, 0.042727500200271606, -0.005655110348016024, -0.005997844506055117, -0.0007925723330117762, 0.012566911987960339, -0.005597988143563271, -0.055979881435632706, 0.010681875050067902, -0.002913238713517785, 0.0331309512257576, 0.04798275604844093, 0.001220989739522338,...
[ "False", "Model_coco_detection_annotation", "None", "and", "annotations", "area", "asarray", "bbox", "boxes", "category_id", "channel_dim", "class_labels", "classes", "clip", "convert_coco_poly_to_mask", "def", "dtype", "else", "float32", "for", "get", "get_image_size", "...
conditional_detr/image_processing_pil_conditional_detr.py:masks_to_boxes
[ 0.00018513582472223788, -0.037368953227996826, -0.014696936123073101, -0.007263020612299442, 0.0007903875084593892, 0.0412425622344017, 0.013500673696398735, -0.036229655146598816, 0.02358345501124859, 0.008259905502200127, 0.01503872498869896, 0.005012908484786749, -0.0002919449470937252, ...
[ "Model", "Model_to_boxes", "arange", "array", "axis", "bool", "def", "dtype", "expand_dims", "fill_value", "filled", "float32", "h", "if", "ij", "indexing", "ma", "mask", "max", "meshgrid", "min", "np", "reshape", "return", "shape", "size", "stack", "w", "x", ...
conditional_detr/image_processing_pil_conditional_detr.py:rgb_to_id
[ 0.0003475771809462458, -0.031000927090644836, 0.023901477456092834, -0.015263814479112625, 0.001893186359666288, 0.00019504995725583285, 0.01455387007445097, -0.04851289838552475, 0.027806174010038376, 0.04212339594960213, 0.057978831231594086, -0.015382139012217522, -0.0010205457219853997, ...
[ "Model_to_id", "and", "astype", "color", "def", "dtype", "if", "int", "int32", "isinstance", "len", "ndarray", "np", "return", "shape", "uint8" ]
conditional_detr/image_processing_pil_conditional_detr.py:prepare_coco_panoptic_annotation
[ -0.00022220355458557606, 0.018579084426164627, -0.0009461570880375803, -0.0000918381629162468, -0.0008529749466106296, 0.03624068200588226, 0.013762285001575947, -0.043580569326877594, 0.011124513112008572, 0.007225199602544308, 0.019955312833189964, 0.044498052448034286, -0.0023797284811735...
[ "Image", "Model_coco_panoptic_annotation", "None", "PIL", "Path", "True", "annotation_path", "area", "array", "asarray", "astype", "boxes", "category_id", "channel_dim", "class_labels", "def", "dtype", "else", "file_name", "float32", "for", "get_image_size", "id", "ids"...
conditional_detr/image_processing_pil_conditional_detr.py:binary_mask_to_rle
[ 0.00014920880494173616, -0.03133563697338104, 0.008177000097930431, 0.004746091086417437, 0.000907761394046247, 0.06724581867456436, -0.009034727700054646, -0.074565090239048, 0.02035672776401043, 0.008005454204976559, 0.051921091973781586, 0.009492182172834873, 0.0015010227216407657, -0.0...
[ "Model_mask_to_rle", "concatenate", "def", "flatten", "if", "is_torch_tensor", "list", "mask", "np", "numpy", "pixels", "return", "runs", "where" ]
conditional_detr/image_processing_pil_conditional_detr.py:check_segment_validity
[ -0.00013257849786896259, 0.022476885467767715, -0.022589268162846565, -0.022814037278294563, -0.00047060978249646723, 0.02921994961798191, -0.004186319652944803, -0.03394009545445442, -0.001994823571294546, 0.0018121987814083695, 0.042256541550159454, 0.014722359366714954, -0.002374120987951...
[ "False", "Model_segment_validity", "and", "area_ratio", "def", "if", "item", "k", "mask_exists", "mask_k", "mask_k_area", "mask_labels", "mask_probs", "mask_threshold", "not", "original_area", "overlap_mask_area_threshold", "return", "sum" ]
conditional_detr/image_processing_pil_conditional_detr.py:compute_segments
[ -0.00027273379964753985, 0.023885738104581833, -0.048230819404125214, -0.015962105244398117, -0.0011124667944386601, 0.03307256102561951, 0.033531904220581055, -0.04547477141022682, 0.00640206690877676, -0.027101127430796623, 0.02158903330564499, 0.02721596136689186, -0.005856599658727646, ...
[ "False", "Model_segments", "None", "align_corners", "append", "argmax", "bilinear", "check_segment_validity", "current_segment_id", "def", "device", "dtype", "else", "for", "functional", "height", "id", "if", "in", "int", "int32", "interpolate", "is", "item", "k", "...
conditional_detr/image_processing_pil_conditional_detr.py:convert_segmentation_to_rle
[ 0.00004095708573004231, -0.01426649373024702, -0.01638641394674778, 0.007906731218099594, 0.0006982847116887569, 0.06142040714621544, -0.002592605771496892, -0.04973219707608223, 0.019594943150877953, -0.004211193881928921, 0.060962047427892685, 0.016042644158005714, 0.00043329462641850114, ...
[ "Model_segmentation_to_rle", "append", "binary_mask_to_rle", "def", "for", "idx", "in", "mask", "return", "rle", "run_length_encodings", "segment_ids", "segmentation", "torch", "unique", "where" ]
conditional_detr/image_processing_pil_conditional_detr.py:remove_low_and_no_objects
[ -0.00004659569094656035, 0.01440422236919403, -0.006442513782531023, -0.0034603893291205168, -0.00029715741402469575, 0.04478812962770462, 0.012378628365695477, -0.025770055130124092, 0.02284419722855091, -0.023969527333974838, -0.012491161935031414, 0.035560425370931625, 0.00125896278768777...
[ "Model_low_and_no_objects", "ValueError", "and", "def", "have", "if", "labels", "mask", "masks", "must", "ne", "not", "num_labels", "object_mask_threshold", "raise", "return", "same", "scores", "shape", "the", "to_keep" ]
conditional_detr/image_processing_pil_conditional_detr.py:ConditionalDetrImageProcessorPil
[ -0.0003378518740646541, 0.035844817757606506, -0.020119350403547287, 0.03838864713907242, -0.0016982929082587361, 0.0060994005762040615, 0.01514732651412487, -0.043245039880275726, 0.0009683882817625999, 0.020350607112050056, 0.006359564606100321, 0.03353225067257881, -0.003353225067257881, ...
[ "AnnotationFormat", "Any", "BILINEAR", "BatchFeature", "COCO_DETECTION", "COCO_PANOPTIC", "CONSTANT", "ChannelDimension", "FIRST", "False", "Got", "IMAGENET_DEFAULT_MEAN", "IMAGENET_DEFAULT_STD", "ImportError", "Make", "ModelImageProcessorKwargs", "ModelImageProcessorPil", "NEAREST...
owlv2/image_processing_owlv2.py:_upcast
[ -0.00035685126204043627, 0.022607790306210518, 0.017993954941630363, -0.024222632870078087, -0.0014706597430631518, 0.011822951026260853, 0.012745718471705914, -0.0380641371011734, -0.0056807841174304485, 0.04729180410504341, -0.02030087262392044, -0.04729180410504341, -0.004181287717074156,...
[ "_upcast", "def", "dtype", "else", "float", "float32", "float64", "if", "in", "int", "int64", "is_floating_point", "return", "t", "torch" ]
owlv2/image_processing_owlv2.py:box_area
[ 0.0003176898753736168, -0.029680268839001656, 0.0073616416193544865, -0.0040605878457427025, 0.0016943460796028376, 0.04230022430419922, 0.029913971200585365, 0.005842572543770075, 0.026992686092853546, 0.02757694199681282, 0.0075953444465994835, 0.01045820489525795, -0.002804434858262539, ...
[ "Model_area", "Modeles", "_upcast", "def", "return" ]
owlv2/image_processing_owlv2.py:box_iou
[ 0.00011691644613165408, 0.012394928373396397, 0.026617681607604027, -0.010909821838140488, 0.0008532223291695118, 0.04089755192399025, 0.026846159249544144, -0.027988549321889877, 0.029016699641942978, -0.009253356605768204, 0.05574861913919449, -0.013937154784798622, -0.001913502812385559, ...
[ "Model_area", "Model_iou", "Modeles1", "Modeles2", "None", "area1", "area2", "clamp", "def", "inter", "iou", "left_top", "max", "min", "return", "right_bottom", "torch", "union", "width_height" ]
owlv2/image_processing_owlv2.py:_scale_boxes
[ -0.0000208833662327379, -0.012400844134390354, 0.013888945803046227, -0.014109404757618904, -0.00035652428050525486, 0.006503554061055183, -0.0032242194283753633, -0.04497372731566429, 0.004602090921252966, 0.04078499972820282, -0.03461213409900665, -0.035273514688014984, -0.0002049583999905...
[ "Tensor", "_scale_boxes", "boxes", "def", "device", "dim", "elif", "else", "for", "i", "if", "image_height", "image_width", "in", "isinstance", "list", "max", "max_size", "or", "return", "scale_factor", "stack", "target_sizes", "tensor", "to", "torch", "tuple", ...
owlv2/image_processing_owlv2.py:Owlv2ImageProcessor
[ -0.00027942139422520995, 0.03417127951979637, -0.021869618445634842, 0.027678735554218292, -0.0012529469095170498, 0.02961510792374611, 0.006862731650471687, -0.03918306529521942, 0.0017797540640458465, 0.027109215036034584, 0.003587984247133136, 0.04282800108194351, 0.0014807553961873055, ...
[ "Anti", "BILINEAR", "BatchFeature", "Each", "False", "Make", "ModelImageProcessor", "None", "OPENAI_CLIP_MEAN", "OPENAI_CLIP_STD", "PILImageResampling", "TorchvisionBackend", "True", "ValueError", "__init__", "_pad_images", "_preprocess", "_scale_boxes", "aliasing", "all", "a...
owlv2/image_processing_pil_owlv2.py:_upcast
[ -0.0003486654895823449, 0.02070426009595394, 0.01690847799181938, -0.0250751581043005, -0.0012868272606283426, 0.012825138866901398, 0.012192508205771446, -0.0379578098654747, -0.005348600447177887, 0.048770032823085785, -0.024039944633841515, -0.04600946605205536, -0.004658458288758993, 0...
[ "_upcast", "def", "dtype", "else", "float", "float32", "float64", "if", "in", "int", "int64", "is_floating_point", "return", "t", "torch" ]
owlv2/image_processing_pil_owlv2.py:box_area
[ 0.0003176898753736168, -0.029680268839001656, 0.0073616416193544865, -0.0040605878457427025, 0.0016943460796028376, 0.04230022430419922, 0.029913971200585365, 0.005842572543770075, 0.026992686092853546, 0.02757694199681282, 0.0075953444465994835, 0.01045820489525795, -0.002804434858262539, ...
[ "Model_area", "Modeles", "_upcast", "def", "return" ]
owlv2/image_processing_pil_owlv2.py:box_iou
[ 0.00015035395335871726, 0.014147590845823288, 0.026691406965255737, -0.010309984907507896, 0.0010023596696555614, 0.04055260866880417, 0.025774963200092316, -0.027836959809064865, 0.02886795811355114, -0.008534376509487629, 0.055903032422065735, -0.014262146316468716, -0.0018472056835889816,...
[ "Model_area", "Model_iou", "Modeles1", "Modeles2", "None", "area1", "area2", "clamp", "def", "inter", "iou", "left_top", "max", "min", "return", "right_bottom", "torch", "union", "width_height" ]
owlv2/image_processing_pil_owlv2.py:_preprocess_resize_output_shape
[ -0.00010745618055807427, 0.05322837457060814, 0.034889187663793564, 0.018898310139775276, -0.0005940666887909174, 0, -0.027620606124401093, -0.0534520260989666, 0.007771790027618408, 0.03600743040442467, -0.02325945906341076, -0.02683783695101738, 0.0003022751188836992, 0.02739695832133293...
[ "_preprocess_resize_output_shape", "def", "elif", "if", "image", "input_shape", "len", "ndim", "np", "output_ndim", "output_shape", "reshape", "return", "shape", "tuple" ]
owlv2/image_processing_pil_owlv2.py:_clip_warp_output
[ 0.00011187640484422445, 0.05106420814990997, 0.02042568288743496, 0.020203664898872375, 0.00009539848542772233, 0.006938071921467781, -0.027419259771704674, -0.0335247628390789, 0.010989905335009098, 0.03907522186636925, 0.019537610933184624, -0.0042183478362858295, 0.005661466624587774, 0...
[ "_clip_warp_output", "clip", "def", "else", "if", "input_image", "isnan", "max", "max_func", "max_val", "min", "min_func", "min_val", "nanmax", "nanmin", "np", "output_image", "return" ]
owlv2/image_processing_pil_owlv2.py:_scale_boxes
[ -0.0000208833662327379, -0.012400844134390354, 0.013888945803046227, -0.014109404757618904, -0.00035652428050525486, 0.006503554061055183, -0.0032242194283753633, -0.04497372731566429, 0.004602090921252966, 0.04078499972820282, -0.03461213409900665, -0.035273514688014984, -0.0002049583999905...
[ "Tensor", "_scale_boxes", "boxes", "def", "device", "dim", "elif", "else", "for", "i", "if", "image_height", "image_width", "in", "isinstance", "list", "max", "max_size", "or", "return", "scale_factor", "stack", "target_sizes", "tensor", "to", "torch", "tuple", ...
owlv2/image_processing_pil_owlv2.py:Owlv2ImageProcessorPil
[ -0.00030233152210712433, 0.023332880809903145, -0.031869299709796906, 0.03915371000766754, -0.0011879850644618273, 0.012007896788418293, 0.00597549369558692, -0.03892607241868973, -0.0025466985534876585, 0.025153983384370804, -0.0011524166911840439, 0.029820559546351433, 0.000035568416933529...
[ "Anti", "BILINEAR", "BatchFeature", "ChannelDimension", "Each", "FIRST", "LAST", "Make", "ModelImageProcessorPil", "None", "OPENAI_CLIP_MEAN", "OPENAI_CLIP_STD", "PILImageResampling", "PilBackend", "True", "ValueError", "__init__", "_clip_warp_output", "_preprocess", "_preproce...
idefics2/image_processing_pil_idefics2.py:_make_pixel_mask
[ 0.00006175704038469121, -0.022044653072953224, 0.03295564278960228, -0.008405916392803192, 0, 0.008795593865215778, 0.01725717820227146, -0.09218673408031464, 0.019372574985027313, 0.02839084155857563, 0.012692376039922237, -0.03718643635511398, -0.0011203249450773, -0.028724851086735725, ...
[ "_make_pixel_mask", "def", "dtype", "h", "image", "int", "int64", "mask", "np", "output_size", "return", "shape", "w", "zeros" ]
idefics2/image_processing_pil_idefics2.py:Idefics2ImageProcessorKwargs
[ -0.0003273914335295558, 0.0237467922270298, -0.027704590931534767, 0.0029537982773035765, -0.0017024355474859476, 0.017693689092993736, 0.0237467922270298, -0.05377950146794319, 0.015481977723538876, 0.01629681885242462, 0.010418322868645191, 0, 0.0031138563062995672, -0.005005451384931803...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_image_splitting", "r", "total" ]
idefics2/image_processing_pil_idefics2.py:convert_to_rgb
[ 0.00018102984176948667, -0.018173975870013237, 0.03907404839992523, 0.006048526614904404, 0.0008661035681143403, 0.029305538162589073, -0.01828756369650364, -0.027942489832639694, 0.019423438236117363, 0.017946802079677582, 0.03475772961974144, 0.02771531417965889, -0.002058770740404725, 0...
[ "Image", "Model", "Model_to_rgb", "RGB", "RGBA", "alpha_composite", "background", "def", "if", "image", "image_rgba", "is_vision_available", "isinstance", "mode", "new", "not", "or", "return", "size" ]
idefics2/image_processing_pil_idefics2.py:get_max_height_width
[ 0.00006222455704119056, -0.029185494408011436, 0.0441124252974987, 0.029853863641619682, 0.00015229787095449865, -0.0034393209498375654, 0.016263671219348907, -0.015149721875786781, 0.02161063253879547, 0.01336740143597126, 0.02539806254208088, -0.02807154320180416, -0.0002993741072714329, ...
[ "Model_max_height_width", "append", "def", "for", "image", "image_sizes", "images", "images_list", "in", "max", "max_height", "max_width", "return", "shape", "size" ]
idefics2/image_processing_pil_idefics2.py:get_resize_output_image_size
[ 0, 0.03783683106303215, 0.05119100958108902, 0.005842451937496662, -0.0001799683814169839, 0.014077527448534966, 0.016470151022076607, -0.03026946634054184, 0.01947483979165554, 0.025372933596372604, 0.005174743011593819, -0.013743672519922256, -0.0003268991131335497, 0.029824325814843178,...
[ "Model_resize_output_image_size", "and", "aspect_ratio", "def", "elif", "height", "if", "image", "int", "longest_edge", "max", "max_len", "min_len", "return", "shape", "shortest_edge", "size", "width" ]
idefics2/image_processing_pil_idefics2.py:Idefics2ImageProcessorPil
[ -0.00025867007207125425, 0.025564344599843025, -0.006700786296278238, 0.03783973678946495, -0.0009431779035367072, 0.002787302015349269, -0.009910406544804573, -0.0443715937435627, -0.0004962242092005908, 0.03468642383813858, 0.004701812285929918, 0.00732018705457449, 0.0017315057339146733, ...
[ "BILINEAR", "BatchFeature", "CONSTANT", "False", "Got", "IMAGENET_STANDARD_MEAN", "IMAGENET_STANDARD_STD", "ModelImageProcessorKwargs", "ModelImageProcessorPil", "None", "PILImageResampling", "Padding", "PaddingMode", "PilBackend", "Please", "SizeDict", "True", "ValueError", "_",...
idefics2/image_processing_idefics2.py:get_resize_output_image_size
[ 0, 0.03783683106303215, 0.05119100958108902, 0.005842451937496662, -0.0001799683814169839, 0.014077527448534966, 0.016470151022076607, -0.03026946634054184, 0.01947483979165554, 0.025372933596372604, 0.005174743011593819, -0.013743672519922256, -0.0003268991131335497, 0.029824325814843178,...
[ "Model_resize_output_image_size", "and", "aspect_ratio", "def", "elif", "height", "if", "image", "int", "longest_edge", "max", "max_len", "min_len", "return", "shape", "shortest_edge", "size", "width" ]
idefics2/image_processing_idefics2.py:convert_to_rgb
[ 0.00018102984176948667, -0.018173975870013237, 0.03907404839992523, 0.006048526614904404, 0.0008661035681143403, 0.029305538162589073, -0.01828756369650364, -0.027942489832639694, 0.019423438236117363, 0.017946802079677582, 0.03475772961974144, 0.02771531417965889, -0.002058770740404725, 0...
[ "Image", "Model", "Model_to_rgb", "RGB", "RGBA", "alpha_composite", "background", "def", "if", "image", "image_rgba", "is_vision_available", "isinstance", "mode", "new", "not", "or", "return", "size" ]
idefics2/image_processing_idefics2.py:Idefics2ImageProcessorKwargs
[ -0.0003273914335295558, 0.0237467922270298, -0.027704590931534767, 0.0029537982773035765, -0.0017024355474859476, 0.017693689092993736, 0.0237467922270298, -0.05377950146794319, 0.015481977723538876, 0.01629681885242462, 0.010418322868645191, 0, 0.0031138563062995672, -0.005005451384931803...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_image_splitting", "r", "total" ]
idefics2/image_processing_idefics2.py:get_max_height_width
[ 0.00006222455704119056, -0.029185494408011436, 0.0441124252974987, 0.029853863641619682, 0.00015229787095449865, -0.0034393209498375654, 0.016263671219348907, -0.015149721875786781, 0.02161063253879547, 0.01336740143597126, 0.02539806254208088, -0.02807154320180416, -0.0002993741072714329, ...
[ "Model_max_height_width", "append", "def", "for", "image", "image_sizes", "images", "images_list", "in", "max", "max_height", "max_width", "return", "shape", "size" ]
idefics2/image_processing_idefics2.py:make_pixel_mask
[ 0.000041818286263151094, -0.0014148519840091467, 0.02921704202890396, -0.01148608885705471, 0.00008973506919573992, 0.025760063901543617, 0.017507921904325485, -0.08029110729694366, 0.01940368488430977, 0.02609460987150669, 0.010872754268348217, -0.033231597393751144, 0.00023697028518654406,...
[ "Model_pixel_mask", "def", "device", "dtype", "image", "input_height", "input_width", "int", "int64", "mask", "output_size", "return", "shape", "torch", "zeros" ]
idefics2/image_processing_idefics2.py:Idefics2ImageProcessor
[ -0.00021127713262103498, 0.03994803503155708, 0.002763259457424283, 0.02311599813401699, -0.0007925084210000932, 0.011838532984256744, -0.011389678344130516, -0.039723608642816544, 0.0007434149738401175, 0.0354594923555851, 0.015597688034176826, 0.016383182257413864, 0.0029456065967679024, ...
[ "BILINEAR", "BatchFeature", "False", "Got", "IMAGENET_STANDARD_MEAN", "IMAGENET_STANDARD_STD", "ModelImageProcessor", "ModelImageProcessorKwargs", "None", "PILImageResampling", "Padding", "Please", "SizeDict", "TorchvisionBackend", "True", "ValueError", "__init__", "_prepare_images...
mask2former/image_processing_mask2former.py:Mask2FormerImageProcessorKwargs
[ -0.00019416744180489331, 0.01940610446035862, -0.01724987104535103, -0.0033903939183801413, -0.0009717238135635853, 0.026215264573693275, 0.02735012397170067, -0.036542490124702454, 0.019519589841365814, 0.01305088959634304, 0.003106679068878293, 0.019292619079351425, 0.00020835318719036877,...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "None", "SizeDict", "bool", "class", "do_reduce_labels", "ignore_index", "int", "num_labels", "pad_size", "r", "size_divisor", "total" ]
mask2former/image_processing_mask2former.py:binary_mask_to_rle
[ 0.00015421226271428168, -0.029209407046437263, 0.006788905244320631, 0.0076446495950222015, 0.0007559075020253658, 0.06526476889848709, -0.01118172612041235, -0.07074153423309326, 0.019739169627428055, 0.006817429792135954, 0.049519073218107224, 0.0006560706533491611, 0.0014191094087436795, ...
[ "Model_mask_to_rle", "cat", "def", "device", "dtype", "flatten", "from_numpy", "if", "isinstance", "mask", "ndarray", "np", "pixels", "return", "runs", "tolist", "torch", "where", "zero", "zeros" ]
mask2former/image_processing_mask2former.py:convert_segmentation_to_rle
[ 0.00006262735405471176, -0.015230972319841385, -0.017979418858885765, 0.009333265013992786, 0.0006262735114432871, 0.06275618821382523, -0.005554151255637407, -0.04924299195408821, 0.01775038056075573, -0.004752521403133869, 0.06046581268310547, 0.01414304506033659, 0.00008857296779751778, ...
[ "Model_segmentation_to_rle", "append", "binary_mask_to_rle", "def", "for", "idx", "in", "mask", "return", "rle", "run_length_encodings", "segment_ids", "segmentation", "torch", "unique", "where" ]
mask2former/image_processing_mask2former.py:remove_low_and_no_objects
[ -0.00004659569094656035, 0.01440422236919403, -0.006442513782531023, -0.0034603893291205168, -0.00029715741402469575, 0.04478812962770462, 0.012378628365695477, -0.025770055130124092, 0.02284419722855091, -0.023969527333974838, -0.012491161935031414, 0.035560425370931625, 0.00125896278768777...
[ "Model_low_and_no_objects", "ValueError", "and", "def", "have", "if", "labels", "mask", "masks", "must", "ne", "not", "num_labels", "object_mask_threshold", "raise", "return", "same", "scores", "shape", "the", "to_keep" ]
mask2former/image_processing_mask2former.py:check_segment_validity
[ -0.00013257849786896259, 0.022476885467767715, -0.022589268162846565, -0.022814037278294563, -0.00047060978249646723, 0.02921994961798191, -0.004186319652944803, -0.03394009545445442, -0.001994823571294546, 0.0018121987814083695, 0.042256541550159454, 0.014722359366714954, -0.002374120987951...
[ "False", "Model_segment_validity", "and", "area_ratio", "def", "if", "item", "k", "mask_exists", "mask_k", "mask_k_area", "mask_labels", "mask_probs", "mask_threshold", "not", "original_area", "overlap_mask_area_threshold", "return", "sum" ]
mask2former/image_processing_mask2former.py:compute_segments
[ -0.000294606143143028, 0.022878682240843773, -0.04506755247712135, -0.01563568226993084, -0.001005972153507173, 0.033570729196071625, 0.03495034575462341, -0.04529748857021332, 0.007357968017458916, -0.027132507413625717, 0.021384093910455704, 0.02667263336479664, -0.005748412571847439, -0...
[ "False", "Model_segments", "None", "align_corners", "append", "argmax", "bilinear", "check_segment_validity", "current_segment_id", "def", "device", "dtype", "else", "for", "functional", "height", "id", "if", "in", "int", "int32", "interpolate", "is", "item", "k", "...
mask2former/image_processing_mask2former.py:convert_segmentation_map_to_binary_masks_fast
[ -0.00006633145676460117, -0.0012018732959404588, -0.006775472778826952, -0.0328371487557888, 0, 0.00961498636752367, -0.017655588686466217, -0.05060519278049469, 0.007984374649822712, -0.0031206535641103983, 0.032612234354019165, -0.005032405257225037, -0.002741114469245076, -0.03733538463...
[ "False", "Model_segmentation_map_to_binary_masks_fast", "None", "all_labels", "and", "be", "binary_masks", "class_id", "def", "device", "dim", "do_reduce_labels", "else", "enumerate", "float", "for", "i", "if", "ignore_index", "in", "instance_id_to_semantic_id", "int", "i...
mask2former/image_processing_mask2former.py:Mask2FormerImageProcessor
[ -0.0002442406548652798, 0.04530841112136841, -0.020048972219228745, 0.022994019091129303, -0.0009911215165629983, 0.015971215441823006, 0.014158878475427628, -0.02854429930448532, 0.0012884578900411725, 0.027638131752610207, 0.0091749532148242, 0.02140822447836399, -0.0015362383564934134, ...
[ "BILINEAR", "BatchFeature", "ChannelDimension", "FIRST", "False", "Got", "IMAGENET_DEFAULT_MEAN", "IMAGENET_DEFAULT_STD", "Images", "InterpolationMode", "Make", "Model", "ModelImageProcessor", "ModelImageProcessorKwargs", "Model_cls", "Model_labels", "Model_pred", "Model_probs", ...
mask2former/image_processing_pil_mask2former.py:Mask2FormerImageProcessorKwargs
[ -0.00019416744180489331, 0.01940610446035862, -0.01724987104535103, -0.0033903939183801413, -0.0009717238135635853, 0.026215264573693275, 0.02735012397170067, -0.036542490124702454, 0.019519589841365814, 0.01305088959634304, 0.003106679068878293, 0.019292619079351425, 0.00020835318719036877,...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "None", "SizeDict", "bool", "class", "do_reduce_labels", "ignore_index", "int", "num_labels", "pad_size", "r", "size_divisor", "total" ]
mask2former/image_processing_pil_mask2former.py:convert_segmentation_map_to_binary_masks
[ 0.0000650689034955576, 0.0018852396169677377, -0.010636127553880215, -0.027687696740031242, 0.0006506890058517456, 0.010917507112026215, -0.02644963003695011, -0.04434533789753914, 0.005683856550604105, -0.01119888573884964, 0.04209430515766144, 0.0025886872317641973, -0.002180687617510557, ...
[ "False", "Model_segmentation_map_to_binary_masks", "None", "all_labels", "and", "astype", "axis", "be", "binary_masks", "class_id", "def", "do_reduce_labels", "dtype", "else", "enumerate", "float32", "for", "i", "if", "ignore_index", "in", "instance_id_to_semantic_id", "i...
mask2former/image_processing_pil_mask2former.py:binary_mask_to_rle
[ 0.00014920880494173616, -0.03133563697338104, 0.008177000097930431, 0.004746091086417437, 0.000907761394046247, 0.06724581867456436, -0.009034727700054646, -0.074565090239048, 0.02035672776401043, 0.008005454204976559, 0.051921091973781586, 0.009492182172834873, 0.0015010227216407657, -0.0...
[ "Model_mask_to_rle", "concatenate", "def", "flatten", "if", "is_torch_tensor", "list", "mask", "np", "numpy", "pixels", "return", "runs", "where" ]
mask2former/image_processing_pil_mask2former.py:check_segment_validity
[ -0.00013257849786896259, 0.022476885467767715, -0.022589268162846565, -0.022814037278294563, -0.00047060978249646723, 0.02921994961798191, -0.004186319652944803, -0.03394009545445442, -0.001994823571294546, 0.0018121987814083695, 0.042256541550159454, 0.014722359366714954, -0.002374120987951...
[ "False", "Model_segment_validity", "and", "area_ratio", "def", "if", "item", "k", "mask_exists", "mask_k", "mask_k_area", "mask_labels", "mask_probs", "mask_threshold", "not", "original_area", "overlap_mask_area_threshold", "return", "sum" ]
mask2former/image_processing_pil_mask2former.py:compute_segments
[ -0.000294606143143028, 0.022878682240843773, -0.04506755247712135, -0.01563568226993084, -0.001005972153507173, 0.033570729196071625, 0.03495034575462341, -0.04529748857021332, 0.007357968017458916, -0.027132507413625717, 0.021384093910455704, 0.02667263336479664, -0.005748412571847439, -0...
[ "False", "Model_segments", "None", "align_corners", "append", "argmax", "bilinear", "check_segment_validity", "current_segment_id", "def", "device", "dtype", "else", "for", "functional", "height", "id", "if", "in", "int", "int32", "interpolate", "is", "item", "k", "...
mask2former/image_processing_pil_mask2former.py:convert_segmentation_to_rle
[ 0.00006262735405471176, -0.015230972319841385, -0.017979418858885765, 0.009333265013992786, 0.0006262735114432871, 0.06275618821382523, -0.005554151255637407, -0.04924299195408821, 0.01775038056075573, -0.004752521403133869, 0.06046581268310547, 0.01414304506033659, 0.00008857296779751778, ...
[ "Model_segmentation_to_rle", "append", "binary_mask_to_rle", "def", "for", "idx", "in", "mask", "return", "rle", "run_length_encodings", "segment_ids", "segmentation", "torch", "unique", "where" ]
mask2former/image_processing_pil_mask2former.py:remove_low_and_no_objects
[ -0.00004659569094656035, 0.01440422236919403, -0.006442513782531023, -0.0034603893291205168, -0.00029715741402469575, 0.04478812962770462, 0.012378628365695477, -0.025770055130124092, 0.02284419722855091, -0.023969527333974838, -0.012491161935031414, 0.035560425370931625, 0.00125896278768777...
[ "Model_low_and_no_objects", "ValueError", "and", "def", "have", "if", "labels", "mask", "masks", "must", "ne", "not", "num_labels", "object_mask_threshold", "raise", "return", "same", "scores", "shape", "the", "to_keep" ]
mask2former/image_processing_pil_mask2former.py:Mask2FormerImageProcessorPil
[ -0.00028989199199713767, 0.028745833784341812, -0.019583815708756447, 0.03527377173304558, -0.001395776285789907, 0.0021187167149037123, 0.0207290668040514, -0.03069276176393032, 0.00025410286616533995, 0.02473745122551918, -0.00045810092706233263, 0.007272352464497089, -0.003120812587440014...
[ "BILINEAR", "BatchFeature", "CONSTANT", "ChannelDimension", "FIRST", "False", "Got", "IMAGENET_DEFAULT_MEAN", "IMAGENET_DEFAULT_STD", "Images", "Make", "Model", "ModelImageProcessorKwargs", "ModelImageProcessorPil", "Model_cls", "Model_label", "Model_labels", "Model_pred", "Model...
clip/image_processing_clip.py:CLIPImageProcessor
[ -0.00024540512822568417, 0.04347582906484604, -0.008706547319889069, 0.04916638508439064, -0.0011879031080752611, 0.02173791453242302, 0.015592116862535477, -0.02207934856414795, 0.005121498368680477, 0.033005211502313614, 0.02401413582265377, 0.003926482051610947, -0.0002791927836369723, ...
[ "BICUBIC", "False", "Model", "OPENAI_Model_MEAN", "OPENAI_Model_STD", "PILImageResampling", "TorchvisionBackend", "True", "__init__", "and", "class", "crop_size", "def", "default_to_square", "do_center_crop", "do_convert_rgb", "do_normalize", "do_rescale", "do_resize", "height"...
clip/image_processing_pil_clip.py:CLIPImageProcessorPil
[ -0.0002690776309464127, 0.03626667708158493, -0.012145915068686008, 0.05679498612880707, -0.0011903566773980856, 0.016536692157387733, 0.011518661864101887, -0.0175631083548069, 0.004932496231049299, 0.03809141367673874, 0.014825999736785889, 0.0032360595650970936, -0.00021294555335771292, ...
[ "BICUBIC", "False", "Model", "OPENAI_Model_MEAN", "OPENAI_Model_STD", "PILImageResampling", "PilBackend", "True", "__init__", "and", "class", "crop_size", "def", "default_to_square", "do_center_crop", "do_convert_rgb", "do_normalize", "do_rescale", "do_resize", "height", "if"...
superpoint/image_processing_pil_superpoint.py:is_grayscale
[ 0.00009853661322267726, -0.03806328400969505, 0.02252265438437462, 0.03693715110421181, 0.0005877005169168115, -0.012950525619089603, -0.008164461702108383, -0.04391917586326599, 0.02398662641644478, 0.039865098893642426, 0.07567611336708069, 0.0017595823155716062, 0.00025689901667647064, ...
[ "True", "all", "and", "def", "if", "image", "is_grayscale", "np", "return", "shape" ]
superpoint/image_processing_pil_superpoint.py:convert_to_grayscale
[ 0.0003205624525435269, -0.024945586919784546, 0.04499531164765358, 0.011190542951226234, 0.001682952861301601, 0.004342163912951946, -0.009850009344518185, -0.029841449111700058, 0.03054085746407509, 0.0354367196559906, 0.049424901604652405, 0.007139799650758505, -0.0016975238686427474, -0...
[ "Model_to_grayscale", "axis", "def", "gray_image", "if", "image", "is_grayscale", "np", "return", "stack" ]
superpoint/image_processing_pil_superpoint.py:SuperPointImageProcessorKwargs
[ -0.0002913917414844036, 0.007079740054905415, -0.015080421231687069, 0.008576270192861557, -0.0013958023628219962, 0.01341121457517147, 0.02682242915034294, -0.046047087758779526, 0.019454894587397575, 0.04512614756822586, 0.019109541550278664, 0.012720508500933647, 0.0012375154765322804, ...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_grayscale", "r", "total" ]
superpoint/image_processing_pil_superpoint.py:SuperPointImageProcessorPil
[ -0.00027129167574457824, 0.017362667247653008, -0.021788446232676506, 0.00953244511038065, -0.0013617778895422816, 0.0027944815810769796, 0.013731259852647781, -0.05515200272202492, -0.00074117595795542, 0.05764859542250633, -0.0004486065299715847, 0.017703112214803696, 0.0006773426430299878...
[ "BILINEAR", "BatchFeature", "Each", "False", "Make", "Model", "ModelImageProcessorKwargs", "ModelImageProcessorPil", "None", "PILImageResampling", "PilBackend", "True", "ValueError", "__init__", "_preprocess", "append", "as", "backends", "batch", "class", "contain", "conver...
superpoint/image_processing_superpoint.py:SuperPointImageProcessorKwargs
[ -0.0002913917414844036, 0.007079740054905415, -0.015080421231687069, 0.008576270192861557, -0.0013958023628219962, 0.01341121457517147, 0.02682242915034294, -0.046047087758779526, 0.019454894587397575, 0.04512614756822586, 0.019109541550278664, 0.012720508500933647, 0.0012375154765322804, ...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_grayscale", "r", "total" ]
superpoint/image_processing_superpoint.py:is_grayscale
[ 0.0001427091920049861, -0.020634692162275314, 0.022777091711759567, 0.01634989306330681, 0.0009584419894963503, -0.003918336238712072, 0.0007012130809016526, -0.03067014366388321, 0.020634692162275314, 0.04803485795855522, 0.06043822690844536, 0.00727288331836462, -0.0012403366854414344, -...
[ "True", "all", "and", "def", "else", "if", "image", "is_grayscale", "ndim", "or", "return", "shape", "torch" ]
superpoint/image_processing_superpoint.py:convert_to_grayscale
[ 0.0001650349295232445, -0.00885864906013012, 0.034071728587150574, 0.013060828670859337, 0.0008766371756792068, 0.019648030400276184, 0.002839310560375452, -0.03225456923246384, 0.02407735399901867, 0.03225456923246384, 0.03361743688583374, -0.006530414335429668, -0.0015474243555217981, 0....
[ "Model_to_grayscale", "def", "if", "image", "is_grayscale", "num_output_channels", "return", "rgb_to_grayscale", "tvF" ]
superpoint/image_processing_superpoint.py:SuperPointImageProcessor
[ -0.0002541849098633975, 0.02812979742884636, -0.022255301475524902, 0.0007378423470072448, -0.0009814362274482846, 0.017171602696180344, 0.01242681872099638, -0.05874495953321457, 0.003346768207848072, 0.051966696977615356, 0.009037686511874199, 0.02846871130168438, 0.001369774341583252, -...
[ "BILINEAR", "BatchFeature", "Each", "False", "Make", "Model", "ModelImageProcessor", "ModelImageProcessorKwargs", "None", "PILImageResampling", "TorchvisionBackend", "True", "ValueError", "__init__", "_preprocess", "append", "as", "batch", "class", "contain", "convert_to_gray...
emu3/image_processing_emu3.py:Emu3ImageProcessorKwargs
[ -0.00004504798926063813, 0.01119475532323122, -0.0059630353935062885, -0.01023841928690672, -0.000384995510103181, 0.027339953929185867, 0.027114935219287872, -0.01687651500105858, 0.010125909000635147, 0.023852141574025154, 0.014513802714645863, -0.0006680287187919021, -0.000316434656269848...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "class", "image_area", "int", "ratio", "str", "total" ]
emu3/image_processing_emu3.py:smart_resize
[ -0.00008191712549887598, 0.010708484798669815, 0.04662653058767319, -0.023313265293836594, -0.0002013069752138108, 0.03547185659408569, 0.025878839194774628, -0.031456176191568375, 0.017624381929636, 0.029671426862478256, -0.00513114919885993, -0.033240921795368195, 0.00253768777474761, 0....
[ "Model_resize", "ValueError", "absolute", "aspect", "be", "beta", "ceil", "def", "elif", "f", "factor", "floor", "got", "h_bar", "height", "if", "math", "max", "max_pixels", "min", "min_pixels", "must", "raise", "ratio", "return", "round", "smaller", "sqrt", "...
emu3/image_processing_emu3.py:Emu3ImageProcessor
[ -0.0000811098943813704, 0.037530891597270966, 0.0008640156011097133, 0.03308936581015587, -0.0002966800529975444, 0.008383380249142647, -0.012658348307013512, -0.04175034165382385, 0.0034977016039192677, 0.025982925668358803, 0.024983583018183708, 0.02298489585518837, 0.0017349710687994957, ...
[ "BICUBIC", "BaseImageProcessor", "BatchFeature", "ChannelDimension", "FIRST", "False", "If", "Image", "Invalid", "It", "Iterable", "LAST", "ModelImageProcessor", "ModelImageProcessorKwargs", "Must", "None", "OPENAI_CLIP_MEAN", "OPENAI_CLIP_STD", "PIL", "PILImageResampling", "...
mllama/image_processing_pil_mllama.py:split_to_tiles_np
[ -0.00006399642734322697, 0.005265991669148207, 0.025410499423742294, 0.004764468874782324, 0.00018284693942405283, 0.010643432848155499, 0.0056560649536550045, -0.06508654356002808, 0.01582583785057068, 0.0205067191272974, -0.022847158834338188, -0.02307005785405636, -0.0014140162384137511, ...
[ "Model_to_tiles_np", "ascontiguousarray", "def", "height", "image", "np", "num_channels", "num_tiles_height", "num_tiles_width", "reshape", "return", "shape", "tile_height", "tile_width", "transpose", "width" ]
mllama/image_processing_pil_mllama.py:build_aspect_ratio_mask_np
[ -0.0001633636566111818, -0.004004147369414568, 0.04182109609246254, -0.00028849326190538704, -0.00039798166835680604, 0.027806580066680908, -0.022578943520784378, -0.07785842567682266, 0.012679800391197205, 0.0030726271215826273, 0.024024885147809982, -0.010677726939320564, -0.00118177966214...
[ "Model_aspect_ratio_mask_np", "aspect_ratio_mask", "aspect_ratios", "batch_size", "def", "dtype", "enumerate", "for", "i", "in", "int", "int64", "j", "len", "max", "max_image_tiles", "max_num_images", "np", "num_tiles_h", "num_tiles_w", "return", "row", "sample_aspect_rat...
mllama/image_processing_pil_mllama.py:pack_images
[ -0.00006565584044437855, -0.013468578457832336, -0.0021009868942201138, 0.02226211316883564, 0.00018609735707286745, 0.021928181871771812, -0.02092638611793518, -0.04942189157009125, 0.016251342371106148, 0.008793534711003304, 0.01591741107404232, -0.005426390096545219, -0.000490462174639105...
[ "Model_images", "_", "all_num_tiles", "append", "batch_images", "batch_size", "channels", "def", "dtype", "enumerate", "float32", "for", "i", "image", "images", "in", "j", "len", "max", "max_image_tiles", "max_num_images", "np", "num_sample_tiles", "num_tiles", "retur...
mllama/image_processing_pil_mllama.py:convert_aspect_ratios_to_ids_np
[ -0.00009316269279224798, 0.006298322696238756, 0.027432695031166077, -0.0023093849886208773, -0.00019944689120166004, 0.024633439257740974, 0.0022673960775136948, -0.0640469416975975, 0.015675825998187065, -0.0028552396688610315, 0.025193290784955025, -0.006914158817380667, -0.00113369803875...
[ "Model_aspect_ratios_to_ids_np", "aspect_ratios", "aspect_ratios_ids", "batch_size", "def", "dtype", "enumerate", "for", "get_all_supported_aspect_ratios", "i", "in", "index", "int", "int64", "j", "len", "max", "max_image_tiles", "max_num_images", "np", "num_tiles_h", "num_...
mllama/image_processing_pil_mllama.py:MllamaImageProcessorKwargs
[ -0.00014082458801567554, 0.014138787984848022, -0.014758416451513767, -0.0030277285259217024, -0.0008062207489274442, 0.023771189153194427, 0.034924495965242386, -0.03695237264037132, 0.007604527752846479, 0.01903948374092579, 0.009181763045489788, -0.00023412087466567755, -0.001358957262709...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "class", "int", "max_image_tiles", "total" ]
mllama/image_processing_pil_mllama.py:_validate_size
[ -0.00013426112127490342, -0.009322811849415302, -0.006683220621198416, -0.014208863489329815, -0.0006704280967824161, -0.015949871391057968, 0.04492921382188797, -0.008031097240746021, 0.01280482579022646, 0.017971685156226158, 0.0024289856664836407, -0.026732882484793663, 0.0004124361439608...
[ "Argument", "Got", "ValueError", "_validate_size", "a", "and", "be", "def", "dictionary", "f", "got", "height", "if", "keys", "must", "not", "raise", "size", "width", "with" ]
mllama/image_processing_pil_mllama.py:_validate_mllama_preprocess_arguments
[ -0.00025567327975295484, 0.03886233642697334, -0.0363624207675457, 0.017726680263876915, -0.001193141913972795, 0.034998830407857895, 0.005227098241448402, -0.034998830407857895, 0.0018749373266473413, 0.014204070903360844, 0.002755589783191681, -0.027726346626877785, 0.0006214281311258674, ...
[ "False", "ModelImageProcessor", "None", "ValueError", "_validate_Model_preprocess_arguments", "_validate_size", "a", "be", "def", "do_pad", "do_resize", "f", "got", "if", "integer", "is", "max_image_tiles", "mode", "must", "not", "or", "positive", "raise", "size" ]
mllama/image_processing_pil_mllama.py:convert_to_rgb
[ 0.00018102984176948667, -0.018173975870013237, 0.03907404839992523, 0.006048526614904404, 0.0008661035681143403, 0.029305538162589073, -0.01828756369650364, -0.027942489832639694, 0.019423438236117363, 0.017946802079677582, 0.03475772961974144, 0.02771531417965889, -0.002058770740404725, 0...
[ "Image", "Model", "Model_to_rgb", "RGB", "RGBA", "alpha_composite", "background", "def", "if", "image", "image_rgba", "is_vision_available", "isinstance", "mode", "new", "not", "or", "return", "size" ]
mllama/image_processing_pil_mllama.py:get_all_supported_aspect_ratios
[ -0.0002602352178655565, -0.0024241090286523104, 0.03331010788679123, 0.021218083798885345, -0.0009839030681177974, 0.03947019949555397, 0.006245645694434643, -0.025324810296297073, 0.014715767465531826, 0.014829843305051327, 0.013746123760938644, -0.03627607971429825, -0.0015043735038489103,...
[ "Model_all_supported_aspect_ratios", "aspect_ratios", "def", "for", "height", "if", "in", "max_image_tiles", "range", "return", "width" ]
mllama/image_processing_pil_mllama.py:get_image_size_fit_to_canvas
[ -0.00009130631951848045, -0.0015026412438601255, 0.03561815991997719, -0.00801408663392067, -0.00034783361479640007, 0.011353288777172565, 0.03739906847476959, -0.03517293557524681, 0.018588228151202202, 0.0204804427921772, 0.0035200761631131172, -0.01881084218621254, -0.0015791646437719464,...
[ "Model_image_size_fit_to_canvas", "canvas_height", "canvas_width", "clip", "def", "else", "floor", "if", "image_height", "image_width", "math", "min", "new_height", "new_width", "np", "or", "return", "scale_h", "scale_w", "tarModel_height", "tarModel_width", "tile_size" ]
mllama/image_processing_pil_mllama.py:get_optimal_tiled_canvas
[ -0.00037133198929950595, 0.016958696767687798, 0.019266001880168915, 0.02872595563530922, -0.0015862726140767336, 0.027803033590316772, 0.02180403843522072, -0.05583679676055908, 0.006575820967555046, 0.011478845030069351, -0.0036772682797163725, -0.028149127960205078, -0.0042685153894126415...
[ "Model_all_supported_aspect_ratios", "Model_optimal_tiled_canvas", "T", "areas", "argmin", "array", "chosen_canvas", "def", "downscaling_options", "else", "if", "image_height", "image_width", "len", "max", "max_image_tiles", "min", "np", "optimal_canvas", "optimal_idx", "poss...
mllama/image_processing_pil_mllama.py:MllamaImageProcessorPil
[ -0.0002694552531465888, 0.01713242381811142, -0.0035222910810261965, 0.035166554152965546, -0.0009439740097150207, 0.01577986404299736, 0.002113374648615718, -0.033813994377851486, 0, 0.0250223558396101, 0.009467918425798416, 0.006058340426534414, -0.0009369294275529683, -0.003141883527860...
[ "BILINEAR", "BatchFeature", "CONSTANT", "ChannelDimension", "FIRST", "IMAGENET_STANDARD_MEAN", "IMAGENET_STANDARD_STD", "ModelImageProcessorKwargs", "ModelImageProcessorPil", "None", "PILImageResampling", "PaddingMode", "PilBackend", "SizeDict", "True", "__init__", "_prepare_images_s...
mllama/image_processing_mllama.py:MllamaImageProcessorKwargs
[ -0.00014082458801567554, 0.014138787984848022, -0.014758416451513767, -0.0030277285259217024, -0.0008062207489274442, 0.023771189153194427, 0.034924495965242386, -0.03695237264037132, 0.007604527752846479, 0.01903948374092579, 0.009181763045489788, -0.00023412087466567755, -0.001358957262709...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "class", "int", "max_image_tiles", "total" ]
mllama/image_processing_mllama.py:get_all_supported_aspect_ratios
[ -0.0002602352178655565, -0.0024241090286523104, 0.03331010788679123, 0.021218083798885345, -0.0009839030681177974, 0.03947019949555397, 0.006245645694434643, -0.025324810296297073, 0.014715767465531826, 0.014829843305051327, 0.013746123760938644, -0.03627607971429825, -0.0015043735038489103,...
[ "Model_all_supported_aspect_ratios", "aspect_ratios", "def", "for", "height", "if", "in", "max_image_tiles", "range", "return", "width" ]
mllama/image_processing_mllama.py:get_image_size_fit_to_canvas
[ -0.00009130631951848045, -0.0015026412438601255, 0.03561815991997719, -0.00801408663392067, -0.00034783361479640007, 0.011353288777172565, 0.03739906847476959, -0.03517293557524681, 0.018588228151202202, 0.0204804427921772, 0.0035200761631131172, -0.01881084218621254, -0.0015791646437719464,...
[ "Model_image_size_fit_to_canvas", "canvas_height", "canvas_width", "clip", "def", "else", "floor", "if", "image_height", "image_width", "math", "min", "new_height", "new_width", "np", "or", "return", "scale_h", "scale_w", "tarModel_height", "tarModel_width", "tile_size" ]
mllama/image_processing_mllama.py:get_optimal_tiled_canvas
[ -0.00037133198929950595, 0.016958696767687798, 0.019266001880168915, 0.02872595563530922, -0.0015862726140767336, 0.027803033590316772, 0.02180403843522072, -0.05583679676055908, 0.006575820967555046, 0.011478845030069351, -0.0036772682797163725, -0.028149127960205078, -0.0042685153894126415...
[ "Model_all_supported_aspect_ratios", "Model_optimal_tiled_canvas", "T", "areas", "argmin", "array", "chosen_canvas", "def", "downscaling_options", "else", "if", "image_height", "image_width", "len", "max", "max_image_tiles", "min", "np", "optimal_canvas", "optimal_idx", "poss...
mllama/image_processing_mllama.py:_validate_size
[ -0.00013426112127490342, -0.009322811849415302, -0.006683220621198416, -0.014208863489329815, -0.0006704280967824161, -0.015949871391057968, 0.04492921382188797, -0.008031097240746021, 0.01280482579022646, 0.017971685156226158, 0.0024289856664836407, -0.026732882484793663, 0.0004124361439608...
[ "Argument", "Got", "ValueError", "_validate_size", "a", "and", "be", "def", "dictionary", "f", "got", "height", "if", "keys", "must", "not", "raise", "size", "width", "with" ]
mllama/image_processing_mllama.py:_validate_mllama_preprocess_arguments
[ -0.00025567327975295484, 0.03886233642697334, -0.0363624207675457, 0.017726680263876915, -0.001193141913972795, 0.034998830407857895, 0.005227098241448402, -0.034998830407857895, 0.0018749373266473413, 0.014204070903360844, 0.002755589783191681, -0.027726346626877785, 0.0006214281311258674, ...
[ "False", "ModelImageProcessor", "None", "ValueError", "_validate_Model_preprocess_arguments", "_validate_size", "a", "be", "def", "do_pad", "do_resize", "f", "got", "if", "integer", "is", "max_image_tiles", "mode", "must", "not", "or", "positive", "raise", "size" ]
mllama/image_processing_mllama.py:build_aspect_ratio_mask
[ -0.0001662191207287833, -0.003975261468440294, 0.031802091747522354, -0.012037763372063637, -0.0007103679818101227, 0.038296885788440704, -0.018364587798714638, -0.07211460173130035, 0.010022137314081192, -0.004031250718981028, 0.019148442894220352, -0.006578777451068163, -0.0037513030692934...
[ "Model_aspect_ratio_mask", "None", "aspect_ratio_mask", "aspect_ratios", "batch_size", "def", "device", "dtype", "enumerate", "for", "i", "in", "int", "j", "len", "long", "max", "max_image_tiles", "max_num_images", "num_tiles_h", "num_tiles_w", "return", "row", "sample_...
mllama/image_processing_mllama.py:pad_batches_and_tiles
[ -0.0002113772206939757, -0.01740134507417679, -0.01223707478493452, 0.0031154020689427853, -0.0005683503695763648, 0.026270417496562004, -0.016166411340236664, -0.04917283356189728, 0.013864942826330662, 0.012573875486850739, 0.00020172930089756846, -0.010553074069321156, -0.0031013686675578...
[ "Model_batches_and_tiles", "_", "all_num_tiles", "append", "batch_images", "batch_size", "channels", "def", "device", "dtype", "enumerate", "float32", "for", "i", "image", "images", "in", "j", "len", "max", "max_image_tiles", "max_num_images", "num_sample_tiles", "num_t...
mllama/image_processing_mllama.py:convert_aspect_ratios_to_ids
[ -0.0001637304958421737, 0.00642246101051569, 0.016563188284635544, -0.016675863415002823, -0.00039788271533325315, 0.03380242735147476, 0.006028099451214075, -0.06129506602883339, 0.014028007164597511, 0, 0.014422368258237839, -0.006901328917592764, -0.0028450374957174063, -0.0133519582450...
[ "Model_aspect_ratios_to_ids", "None", "aspect_ratios", "aspect_ratios_ids", "batch_size", "def", "device", "dtype", "enumerate", "for", "get_all_supported_aspect_ratios", "i", "in", "index", "int", "j", "len", "long", "max", "max_image_tiles", "max_num_images", "num_tiles_h...
mllama/image_processing_mllama.py:convert_to_rgb
[ 0.00018102984176948667, -0.018173975870013237, 0.03907404839992523, 0.006048526614904404, 0.0008661035681143403, 0.029305538162589073, -0.01828756369650364, -0.027942489832639694, 0.019423438236117363, 0.017946802079677582, 0.03475772961974144, 0.02771531417965889, -0.002058770740404725, 0...
[ "Image", "Model", "Model_to_rgb", "RGB", "RGBA", "alpha_composite", "background", "def", "if", "image", "image_rgba", "is_vision_available", "isinstance", "mode", "new", "not", "or", "return", "size" ]
mllama/image_processing_mllama.py:MllamaImageProcessor
[ -0.0002429730084259063, 0.0376361683011055, -0.0005176381673663855, 0.026142487302422523, -0.0009366785525344312, 0.033804941922426224, 0.0009789346950128675, -0.031100545078516006, 0.001957869390025735, 0.025353705510497093, 0.01746588572859764, 0.013071243651211262, 0.0006866628536954522, ...
[ "BILINEAR", "BatchFeature", "IMAGENET_STANDARD_MEAN", "IMAGENET_STANDARD_STD", "ModelImageProcessor", "ModelImageProcessorKwargs", "None", "PILImageResampling", "SizeDict", "TorchvisionBackend", "True", "__init__", "_prepare_images_structure", "_preprocess", "_validate_Model_preprocess_a...
idefics3/image_processing_pil_idefics3.py:_make_pixel_mask
[ 0.00006175704038469121, -0.022044653072953224, 0.03295564278960228, -0.008405916392803192, 0, 0.008795593865215778, 0.01725717820227146, -0.09218673408031464, 0.019372574985027313, 0.02839084155857563, 0.012692376039922237, -0.03718643635511398, -0.0011203249450773, -0.028724851086735725, ...
[ "_make_pixel_mask", "def", "dtype", "h", "image", "int", "int64", "mask", "np", "output_size", "return", "shape", "w", "zeros" ]
idefics3/image_processing_pil_idefics3.py:Idefics3ImageProcessorKwargs
[ -0.00023440206132363528, 0.009848465211689472, -0.02736957184970379, 0.008187968283891678, -0.0012954740086570382, 0.01168073806911707, 0.023819543421268463, -0.0480971559882164, 0.01282590813934803, 0.019009828567504883, 0.009104104712605476, -0.0025480040349066257, 0.00003287891377112828, ...
[ "False", "ImagesKwargs", "ModelImageProcessorKwargs", "bool", "class", "do_image_splitting", "int", "max_image_size", "return_row_col_info", "total" ]
idefics3/image_processing_pil_idefics3.py:_resize_output_size_rescale_to_max_len
[ -0.0001808300439734012, 0.0064607239328324795, 0.05033746361732483, 0.005702291149646044, -0.0006741624674759805, 0.030337311327457428, 0.0005196669371798635, -0.03910142555832863, 0.010449518449604511, 0.04786553606390953, 0.024382209405303, -0.03011259064078331, -0.0002387658751104027, 0...
[ "None", "_resize_output_size_rescale_to_max_len", "aspect_ratio", "def", "elif", "else", "height", "if", "int", "is", "max", "max_len", "min_len", "return", "width" ]
idefics3/image_processing_pil_idefics3.py:_resize_output_size_scale_below_upper_bound
[ -0.00024735828628763556, -0.00746315298601985, 0.054503630846738815, -0.010855494998395443, -0.0011025111889466643, 0.010798956267535686, 0.0151524618268013, -0.024198709055781364, 0.007632770109921694, 0.040255796164274216, 0.01238204911351204, -0.04206504300236702, 0.00004726310362457298, ...
[ "None", "_resize_output_size_scale_below_upper_bound", "and", "aspect_ratio", "def", "elif", "else", "height", "if", "int", "is", "max", "max_len", "return", "width" ]
idefics3/image_processing_pil_idefics3.py:get_max_height_width
[ 0.00006222455704119056, -0.029185494408011436, 0.0441124252974987, 0.029853863641619682, 0.00015229787095449865, -0.0034393209498375654, 0.016263671219348907, -0.015149721875786781, 0.02161063253879547, 0.01336740143597126, 0.02539806254208088, -0.02807154320180416, -0.0002993741072714329, ...
[ "Model_max_height_width", "append", "def", "for", "image", "image_sizes", "images", "images_list", "in", "max", "max_height", "max_width", "return", "shape", "size" ]
idefics3/image_processing_pil_idefics3.py:get_num_channels
[ 0, -0.009798076003789902, 0.007827199064195156, 0.04347192496061325, 0.000510316458530724, 0.027479661628603935, 0.011881574988365173, -0.03198452666401863, 0.018807802349328995, 0.0007038848125375807, 0.02714179828763008, -0.00748933432623744, -0.0014851968735456467, 0.004251464270055294,...
[ "Model_num_channels", "No", "ValueError", "batch", "def", "for", "found", "if", "images", "images_list", "in", "raise", "return", "shape", "the" ]
idefics3/image_processing_pil_idefics3.py:get_resize_output_image_size
[ -0.00004134767732466571, 0.042117178440093994, 0.04791107773780823, -0.0011072473134845495, -0.00044046156108379364, 0.0076323458924889565, 0.010585005395114422, -0.03565475344657898, 0.021392853930592537, 0.01883016712963581, 0.005431779194623232, -0.025069748982787132, 0.002520902547985315...
[ "MAX_IMAGE_SIZE", "Model_resize_output_image_size", "_resize_output_size_rescale_to_max_len", "_resize_output_size_scale_below_upper_bound", "def", "height", "image", "max_len", "resolution_max_side", "return", "shape", "width" ]