MCPcopy Create free account

hub / github.com/EGO4D/episodic-memory / functions

Functions1,142 in github.com/EGO4D/episodic-memory

↓ 125 callersMethodload
(self, data: Any )
VQ3D/annotation_API/API/bounding_box.py:12
↓ 76 callersMethodto
(self, device)
EgoTracks/tracking/models/stark_tracker/utils/misc.py:44
↓ 36 callersMethodget
Get a parameter value with the given name. If it does not exists, it return the default value given as a second argument or returns an error i
EgoTracks/tracking/models/stark_tracker/params.py:14
↓ 21 callersMethodcopy
(self)
EgoTracks/tracking/utils/tensor.py:15
↓ 19 callersMethod_iterable
(a)
EgoTracks/tracking/utils/tensor.py:44
↓ 16 callersFunctionresize_if_needed
shape - (width, height) tuple
VQ2D/vq2d/baselines/utils.py:128
↓ 15 callersMethod__init__
(self, in_dim, out_dim, kernel_size=1, stride=1, padding=0, bias=True)
NLQ/VSLNet/model/layers.py:17
↓ 15 callersMethodupdate
(self, val, n=1)
NLQ/2D-TAN/lib/core/utils.py:21
↓ 13 callersMethod_sample_visible_ids
Samples num_ids frames between min_id and max_id for which target is visible args: visible - 1d Tensor indicating whether target
EgoTracks/tracking/dataset/trackingdataset.py:70
↓ 13 callersMethodupdate
Update the state of the particle filter given an observation. Parameters: ---------- observed: array The observe
VQ2D/vq2d/tracking/pfilter.py:327
↓ 12 callersFunctionconv
( in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1, freeze_bn
EgoTracks/tracking/models/stark_tracker/head.py:7
↓ 12 callersMethoddecode
(self, preds, anchors)
MQ/Models/BoxCoder.py:39
↓ 11 callersMethodget
(self, name, frame_num=None)
EgoTracks/tracking/dataset/eval_datasets/base_dataset.py:174
↓ 11 callersMethodhook
(self, name, state)
NLQ/2D-TAN/lib/core/engine.py:5
↓ 11 callersFunctionpad_seq
(sequences, pad_tok=None, max_length=None)
NLQ/VSLNet/utils/data_util.py:136
↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
EgoTracks/tracking/models/stark_tracker/resnet.py:186
↓ 8 callersFunctionread_image
(path, device, resize, rotation, resize_float)
VQ3D/camera_pose_estimation/SuperGlueMatching/models/utils.py:263
↓ 7 callersFunctionmask_logits
(inputs, mask, mask_value=-1e30)
NLQ/VSLNet/model/layers.py:11
↓ 7 callersMethodtrain
(self, network, iterator, maxepoch, optimizer, scheduler)
NLQ/2D-TAN/lib/core/engine.py:10
↓ 6 callersMethod__init__
( self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers
EgoTracks/tracking/models/stark_tracker/transformer.py:35
↓ 6 callersFunctiondraw_bbox
(image: np.ndarray, bbox: BBox)
VQ2D/vq2d/tracking/utils.py:7
↓ 6 callersMethodforward_backbone
The input type is NestedTensor, which consists of: - tensor: batched images, of shape [batch_size x 3 x H x W] - mask: a binary mask o
EgoTracks/tracking/models/stark_tracker/stark_s.py:67
↓ 6 callersMethodget_frames
(self, seq_id, frame_ids, anno=None)
EgoTracks/tracking/dataset/train_datasets/lasot.py:173
↓ 6 callersFunctionget_image_name_from_clip_uid
(clip_uid: str, fno: int)
VQ2D/vq2d/baselines/utils.py:45
↓ 6 callersFunctioniou
(pred, gt)
NLQ/2D-TAN/lib/core/eval.py:9
↓ 6 callersMethodupdate
(self, name='default')
VQ3D/camera_pose_estimation/SuperGlueMatching/models/utils.py:74
↓ 6 callersMethodupdate
(self, val, n=1)
EgoTracks/tracking/utils/meters.py:18
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
EgoTracks/tracking/models/stark_tracker/transformer.py:471
↓ 5 callersFunctionQuaternion2Rotation
Convert a quaternion to rotation matrix Parameters ---------- q : ndarray of shape (4,) Unit quaternion (w, x, y, z)
VQ3D/camera_pose_estimation/utils.py:62
↓ 5 callersFunctionWritePosesToPly
(P, output_path)
VQ3D/camera_pose_estimation/utils.py:96
↓ 5 callersMethod__init__
(self, *transforms)
EgoTracks/tracking/dataset/transforms.py:34
↓ 5 callersMethodadd
Register a new instance and add it to the InstanceRegistration object. If the instance ID is not in the register, add a new ID and O
EgoTracks/tracking/models/template.py:152
↓ 5 callersMethodfrom_json
(data)
VQ2D/vq2d/structures.py:30
↓ 5 callersFunctionget_nearest_frame
Obtain the nearest frame for a given time, video fps, and feature window.
NLQ/VSLNet/utils/prepare_ego4d_dataset.py:24
↓ 5 callersFunctionislist
(a)
EgoTracks/tracking/utils/tensor.py:232
↓ 5 callersMethodload_checkpoint
Loads a network checkpoint file. Can be called in three different ways: load_checkpoint(): Loads the latest epoch
EgoTracks/tools/trainers/base_trainer.py:169
↓ 5 callersFunctionload_json
(filename)
NLQ/VSLNet/utils/data_util.py:11
↓ 5 callersMethodreset
(self)
NLQ/2D-TAN/lib/core/utils.py:15
↓ 5 callersFunctionset_model_to_train
Freezes backbone, proposal_generator. Sets roi_heads to train.
VQ2D/train_siam_rcnn.py:69
↓ 5 callersFunctionsetup
Create configs and perform basic setups.
EgoTracks/tracking/utils/defaults.py:8
↓ 5 callersFunctionvalid_3Dfeatures
(X)
VQ3D/camera_pose_estimation/sfm_api_wsuperglue.py:115
↓ 4 callersFunctionRotation2Quaternion
Convert a rotation matrix to quaternion Parameters ---------- R : ndarray of shape (3, 3) Rotation matrix Returns
VQ3D/camera_pose_estimation/utils.py:23
↓ 4 callersMethod__init__
(self, config)
VQ3D/camera_pose_estimation/SuperGlueMatching/models/superglue.py:204
↓ 4 callersMethod__init__
( self, in_channels: int, out_channels: int, stride: int = 1, downsamp
VQ2D/detectron2_extensions/modeling/roi_heads/set_heads.py:54
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
EgoTracks/tracking/models/stark_tracker/resnet.py:120
↓ 4 callersFunctionaverage_to_fixed_length
(visual_input)
NLQ/2D-TAN/lib/datasets/__init__.py:30
↓ 4 callersFunctioncheck_keys
(model, pretrained_state_dict)
EgoTracks/tracking/utils/load_helper.py:8
↓ 4 callersMethodcopy
(self)
EgoTracks/tracking/dataset/eval_datasets/base_dataset.py:204
↓ 4 callersFunctionextract_window_with_context
Extracts region from a bounding box in the image with some context padding. Arguments: image - (1, c, h, w) Tensor bbox - bo
VQ2D/vq2d/baselines/utils.py:67
↓ 4 callersFunctionget_clip_name_from_clip_uid
(clip_uid: str)
VQ2D/vq2d/baselines/utils.py:41
↓ 4 callersMethodget_metrics
(self)
VQ2D/vq2d/metrics/success_metrics.py:83
↓ 4 callersFunctioniterator
(split)
NLQ/2D-TAN/moment_localization/train.py:119
↓ 4 callersMethodprocess
( self, img_arr: np.ndarray, amask_arr: np.ndarray, device: torch.device = Non
EgoTracks/tracking/models/stark_tracker/utils/misc.py:67
↓ 4 callersFunctionregister_visual_query_datasets
Given dataset paths and other configuration arguments, it registers a visual query dataset with the specified arguments.
VQ2D/vq2d/baselines/dataset.py:44
↓ 4 callersFunctionsample_target
Extracts a square crop centered at target_bb box, of area search_area_factor^2 times target_bb area args: im - cv image target_bb
EgoTracks/tracking/models/stark_tracker/utils/preprocessing_utils.py:14
↓ 4 callersFunctionscale_im_height
(image, H)
VQ2D/visualizations/visualize_annotations.py:49
↓ 4 callersMethodsoft_argmax
get soft-argmax coordinate for a given heatmap
EgoTracks/tracking/models/stark_tracker/head.py:125
↓ 4 callersMethodsoft_argmax
get soft-argmax coordinate for a given heatmap
EgoTracks/tracking/models/stark_tracker/head.py:204
↓ 4 callersMethodtest
(self, network, iterator, split)
NLQ/2D-TAN/lib/core/engine.py:49
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
EgoTracks/tracking/models/stark_tracker/transformer.py:393
↓ 3 callersFunctionMeasureReprojection
Evaluate the reprojection error Parameters ---------- z : ndarray of shape (7K+3J,) Optimization variable b : ndarray of
VQ3D/camera_pose_estimation/reconstruction.py:299
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
EgoTracks/tracking/models/stark_tracker/backbone.py:153
↓ 3 callersMethod_create_projection_layers
( self, in_features: int, hidden_size: int, )
VQ2D/detectron2_extensions/modeling/roi_heads/set_heads.py:331
↓ 3 callersMethod_create_projection_layers
( self, in_features: int, hidden_size: int, )
VQ2D/detectron2_extensions/modeling/roi_heads/siam_heads.py:129
↓ 3 callersFunction_get_activation_fn
Return an activation function given a string
EgoTracks/tracking/models/stark_tracker/transformer.py:603
↓ 3 callersFunction_get_clones
(module, N)
EgoTracks/tracking/models/stark_tracker/transformer.py:585
↓ 3 callersMethod_get_sequence_path
(self, seq_id)
EgoTracks/tracking/dataset/train_datasets/lasot.py:139
↓ 3 callersMethodapply
(self, fn, *args, **kwargs)
EgoTracks/tracking/utils/tensor.py:40
↓ 3 callersMethodarea
(self)
VQ2D/vq2d/structures.py:12
↓ 3 callersFunctionbi_loss
(prediction, groundtruth, reduction='mean')
MQ/Models/Loss.py:165
↓ 3 callersFunctionbinary_cross_entropy_with_logits
Same as `torch.nn.functional.binary_cross_entropy_with_logits`, but returns 0 (instead of nan) for empty inputs. `flip_class` inverts the tar
VQ2D/detectron2_extensions/layers/wrappers.py:29
↓ 3 callersFunctionbuild_backbone
(cfg)
EgoTracks/tracking/models/stark_tracker/backbone.py:168
↓ 3 callersMethodcompute
(self, v1:np.ndarray, v2:np.ndarray)
VQ3D/VQ3D/API/metrics.py:9
↓ 3 callersMethodconcat
Concatenates two dicts without copying internal data.
EgoTracks/tracking/utils/tensor.py:11
↓ 3 callersFunctioncorner2center
:param corner: Corner or np.array 4*N :return: Center or 4 np.array N
EgoTracks/tracking/utils/bbox_helper.py:16
↓ 3 callersFunctiondataset_gen
( data, vfeat_lens, word_dict, char_dict, max_pos_len, scope, num_workers=1 )
NLQ/VSLNet/utils/data_gen.py:151
↓ 3 callersFunctiondataset_gen_bert
(data, vfeat_lens, tokenizer, max_pos_len, scope, num_workers=1)
NLQ/VSLNet/utils/data_gen.py:230
↓ 3 callersFunctiondo_test
(cfg, model)
VQ2D/train_siam_rcnn.py:52
↓ 3 callersMethodforward_transformer
(self, seq_dict, run_box_head=True, run_cls_head=False)
EgoTracks/tracking/models/stark_tracker/stark_s.py:80
↓ 3 callersFunctionget_bbox_from_data
(data: Dict[str, Any])
VQ2D/vq2d/baselines/utils.py:115
↓ 3 callersFunctionget_video_coverage
Given a set of clips from a video, estimate how much of the video is effectively covered by the clips. Args: video_duration - Le
VQ2D/vq2d/stats.py:95
↓ 3 callersMethodis_video_sequence
(self)
EgoTracks/tracking/dataset/train_datasets/coco_seq.py:90
↓ 3 callersFunctionmax_pool
(x)
VQ3D/camera_pose_estimation/SuperGlueMatching/models/superpoint.py:51
↓ 3 callersFunctionmerge_template_search
NOTICE: search region related features must be in the last place
EgoTracks/tracking/models/stark_tracker/utils/merge.py:4
↓ 3 callersMethodobject_init_data
(self, frame_num=None)
EgoTracks/tracking/dataset/eval_datasets/base_dataset.py:146
↓ 3 callersMethodparse_colmap_intrinsics
(self, camera_txt_filename: str)
VQ3D/camera_pose_estimation/Camera_Intrinsics_API/get_camera_intrinsics.py:155
↓ 3 callersMethodprocess_data_tan
(self, data, scope)
NLQ/VSLNet/utils/data_gen.py:35
↓ 3 callersFunctionprocess_resize
(w, h, resize)
VQ3D/camera_pose_estimation/SuperGlueMatching/models/utils.py:240
↓ 3 callersFunctionremove_prefix
Old style model is stored with all names of parameters share common prefix 'module.
EgoTracks/tracking/utils/load_helper.py:27
↓ 3 callersMethodreset_tracker
To reset the tracker after done running on one video. Clear any intermediate variables to get a clean setup for next video.
EgoTracks/tracking/models/tracker.py:249
↓ 3 callersMethodrun
(self, similarity_net, tracker, cfg, device)
VQ2D/perform_vq_inference.py:57
↓ 3 callersMethodrun_colmap
(self)
VQ3D/camera_pose_estimation/Camera_Intrinsics_API/get_camera_intrinsics.py:124
↓ 3 callersMethodsample_seq_from_dataset
(self, dataset, is_video_dataset)
EgoTracks/tracking/dataset/trackingdataset.py:355
↓ 3 callersFunctionsegment_iou
Compute the temporal intersection over union between a target segment and all the test segments. Parameters ---------- target_segment
MQ/Evaluation/utils.py:25
↓ 3 callersFunctionspatio_temporal_iou
Computes spatio-temporal IoU between a target response track (prediction) and multiple candidate response tracks (ground-truth).
VQ2D/vq2d/metrics/utils.py:111
↓ 3 callersMethodtrain
Do training for the given number of epochs. args: max_epochs - Max number of training epochs, load_latest - Bool indic
EgoTracks/tools/trainers/base_trainer.py:89
↓ 3 callersMethodtranspose_for_scores
(self, x)
NLQ/VSLNet/model/layers.py:271
↓ 3 callersMethodupdate
(self, val)
EgoTracks/tools/trainers/base_trainer.py:292
↓ 3 callersFunctionupdate_config
(config_file)
NLQ/2D-TAN/lib/core/config.py:101
↓ 3 callersFunctionxywh_2_cxywh
Top-left x, y to center x, y. Args: bbox: bounding box with [x, y, w, h], x,y are top-left position of the box. context_rati
EgoTracks/tracking/utils/bbox_helper.py:217
next →1–100 of 1,142, ranked by callers