MCPcopy Create free account

hub / github.com/PKU-ICST-MIPL/FineSports_CVPR2024 / functions

Functions799 in github.com/PKU-ICST-MIPL/FineSports_CVPR2024

Method__str__
(self)
models/BLIP/utils.py:83
Method__str__
(self)
models/BLIP/utils.py:112
Method__str__
(self)
models/detr/util/misc.py:80
Method__str__
(self)
models/detr/util/misc.py:179
Method_init_weights
(self, m)
models/BLIP/models/vit.py:167
Method_init_weights
Initialize the weights
models/BLIP/models/nlvr_encoder.py:593
Method_init_weights
Initialize the weights
models/BLIP/models/med.py:558
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
models/BLIP/models/nlvr_encoder.py:635
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
models/BLIP/models/med.py:600
Method_reorder_cache
(self, past, beam_idx)
models/BLIP/models/med.py:951
Function_update_valid_indices_by_removing_high_iou_boxes
( selected_indices, is_index_valid, intersect_over_union, threshold)
evaluates/utils/np_box_list_ops.py:551
Functionaccuracy
Computes the precision@k for the specified values of k
utils/misc.py:484
Functionaccuracy
Computes the precision@k for the specified values of k
utils/utils.py:84
Functionaccuracy
Computes the precision@k for the specified values of k
models/transformer/util/misc.py:450
Functionaccuracy_sigmoid
Computes the precision@k for the specified values of k
utils/misc.py:459
Functionaccuracy_sigmoid
Computes the precision@k for the specified values of k
models/transformer/util/misc.py:425
Methodadd_meter
(self, name, meter)
utils/misc.py:183
Methodadd_meter
(self, name, meter)
models/transformer/util/misc.py:191
Methodadd_meter
(self, name, meter)
models/detr/util/misc.py:191
Methodadd_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
evaluates/utils/object_detection_evaluation.py:214
Methodadd_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image.
evaluates/utils/object_detection_evaluation.py:563
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
evaluates/utils/object_detection_evaluation.py:154
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image.
evaluates/utils/object_detection_evaluation.py:408
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image.
evaluates/utils/object_detection_evaluation.py:512
Functionadjust_learning_rate
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
utils/utils.py:131
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
utils/misc.py:84
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
models/transformer/util/misc.py:89
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
models/detr/util/misc.py:89
Functionarea
Computes area of masks. Args: box_mask_list: np_box_mask_list.BoxMaskList holding N boxes and masks Returns: a numpy array with shape [N
evaluates/utils/np_box_mask_list_ops.py:53
Functionautocontrast_func
same output as PIL.ImageOps.autocontrast
models/BLIP/transform/randaugment.py:10
Methodavg
(self)
utils/misc.py:59
Methodavg
(self)
models/transformer/util/misc.py:64
Methodavg
(self)
models/BLIP/utils.py:67
Methodavg
(self)
models/detr/util/misc.py:64
Functionblip_feature_extractor
(pretrained='',**kwargs)
models/BLIP/models/blip.py:179
Functionbox_cxcywh_to_xyxy
(x)
utils/box_ops.py:9
Functionbox_cxcywh_to_xyxy
(x)
models/transformer/util/box_ops.py:9
Functionbox_xyxy_to_cxcywh
(x)
models/transformer/util/box_ops.py:16
Functionbox_xyxy_to_cxcywh
(x)
models/detr/util/box_ops.py:16
Functionbrightness_func
same output as PIL.ImageEnhance.Contrast
models/BLIP/transform/randaugment.py:122
Functionbuild_CSN
(cfg)
models/backbones/ir_CSN_152.py:317
Functionbuild_matcher
(cfg)
models/detr/matcher.py:84
Functionbuild_position_encoding
(hidden_dim)
models/transformer/position_encoding.py:70
Functionbuild_scheduler_epoch
(cfg, optimizer)
utils/lr_scheduler.py:52
Functioncalculate_mAP
(output, target)
utils/utils.py:76
Functionchange_coordinate_frame
Change coordinate frame of the boxlist to be relative to window's frame. Given a window of the form [ymin, xmin, ymax, xmax], changes bounding bo
evaluates/utils/np_box_list_ops.py:506
Methodcheck_video
(self, vid)
datasets/basketball_jhmdb_frame.py:95
Methodclear
(self)
evaluates/evaluate_ucf.py:132
Methodclear
(self)
evaluates/evaluate_ava.py:198
Methodclear
Clears the state to prepare for a fresh evaluation.
evaluates/utils/object_detection_evaluation.py:299
Methodclear_detections
(self)
evaluates/utils/object_detection_evaluation.py:509
Functionclip_to_window
Clip bounding boxes to a window. This op clips input bounding boxes (represented by bounding box corners) to a window, optionally filtering out b
evaluates/utils/np_box_list_ops.py:334
Functioncollate_fn
(batch)
utils/misc.py:271
Functioncollate_fn
(batch)
models/transformer/util/misc.py:279
Functioncollate_fn
(batch)
models/detr/util/misc.py:279
Functioncollate_fn_2stream
(batch)
utils/misc.py:295
Functioncollate_fn_lfb
(batch)
utils/misc.py:276
Functioncollate_fn_lstr
(batch)
utils/misc.py:282
Functioncollate_fn_lstr_location
(batch)
utils/misc.py:288
Functioncollate_fn_roi
(batch)
utils/misc.py:302
Functioncolor_func
same output as PIL.ImageEnhance.Color
models/BLIP/transform/randaugment.py:87
Functioncompute_acc
(logits, label, reduction='mean')
models/BLIP/utils.py:188
Functioncompute_average_precision
Compute Average Precision according to the definition in VOCdevkit. Precision is modified to ensure that it does not decrease as recall decrease.
evaluates/utils/metrics.py:73
Functioncompute_cor_loc
Compute CorLoc according to the definition in the following paper. https://www.robots.ox.ac.uk/~vgg/rg/papers/deselaers-eccv10.pdf Returns nans
evaluates/utils/metrics.py:125
Functioncompute_n_params
(model, return_str=True)
models/BLIP/utils.py:195
Methodcompute_object_detection_metrics
Evaluates detections as being tp, fp or ignored from a single image. The evaluation is done in two stages: 1. All detections are matched to
evaluates/utils/per_image_evaluation_size.py:47
Functioncompute_precision_recall
Compute precision and recall. Args: scores: A float numpy array representing detection score labels: A boolean numpy array representing tru
evaluates/utils/metrics.py:22
Functionconcatenate
Concatenate list of box_mask_lists. This op concatenates a list of input box_mask_lists into a larger box_mask_list. It also handles concatena
evaluates/utils/np_box_mask_list_ops.py:340
Functioncontrast_func
same output as PIL.ImageEnhance.Contrast
models/BLIP/transform/randaugment.py:109
Functioncreate_category_index_from_labelmap
Reads a label map and returns a category index. Args: label_map_path: Path to `StringIntLabelMap` proto text file. Returns: A category i
evaluates/utils/label_map_util.py:162
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
evaluates/utils/label_map_util.py:179
Methodcreate_custom_forward
(module)
models/BLIP/models/nlvr_encoder.py:464
Methodcreate_custom_forward
(module)
models/BLIP/models/med.py:429
Methodcustom_forward
(*inputs)
models/BLIP/models/nlvr_encoder.py:465
Methodcustom_forward
(*inputs)
models/BLIP/models/med.py:430
Functioncutout_func
(img, pad_size, replace=(0, 0, 0))
models/BLIP/transform/randaugment.py:194
Functioncutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
models/BLIP/transform/randaugment.py:232
Methoddecompose
(self)
utils/misc.py:382
Methoddecompose
(self)
models/transformer/util/misc.py:348
Methoddisplay
(self, batch)
utils/utils.py:120
Functiondownload
Download an given URL Parameters ---------- url : str URL to download path : str, optional Destination path to store d
utils/model_utils.py:175
Methodema_avg
(avg_model_param, model_param, num_averaged)
models/ema_model.py:8
Functionequalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
models/BLIP/transform/randaugment.py:43
Functionevaluate
(cfg, model: torch.nn.Module, criterion: torch.nn.Module, postprocessors, data_loader: Iterable,
utils/video_action_detection_utils.py:14
Methodevaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics:
evaluates/utils/object_detection_evaluation.py:254
Methodevaluate
Compute evaluation result. Returns: A named tuple with the following fields - average_precision: float numpy arra
evaluates/utils/object_detection_evaluation.py:666
Methodfeed_forward_chunk
(self, attention_output)
models/BLIP/models/nlvr_encoder.py:415
Methodfeed_forward_chunk
(self, attention_output)
models/BLIP/models/med.py:380
Methodforward
(self, video_feature, texts)
models/postal_basketball.py:37
Methodforward
The forward expects a NestedTensor, which consists of: - samples.tensor: batched images, of shape [batch_size x 3 x H x W]
models/postal_basketball.py:136
Methodforward
(self, tensor_list: NestedTensor)
models/backbone_builder.py:66
Methodforward
(self, tensor_list: NestedTensor)
models/backbone_builder.py:103
Methodforward
(self, inp)
models/I3D_Backbone.py:99
Methodforward
(self, inp)
models/I3D_Backbone.py:119
Methodforward
(self, inp)
models/I3D_Backbone.py:153
Methodforward
(self, inp)
models/I3D_Backbone.py:239
Methodforward
(self, video)
models/I3D_Backbone.py:429
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the form
models/criterion.py:169
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the form
models/criterion.py:368
Methodforward
Perform the computation Parameters: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x
models/criterion.py:412
← previousnext →501–600 of 799, ranked by callers