MCPcopy Create free account

hub / github.com/Wuziyi616/LEOD / functions

Functions938 in github.com/Wuziyi616/LEOD

↓ 1 callersMethod__init__
(self, drop_prob: float = 0., scale_by_keep: bool = True)
models/layers/maxvit/layers/drop.py:160
↓ 1 callersMethod__init__
(self, feat_size, dim_head, scale)
models/layers/maxvit/layers/bottleneck_attn.py:61
↓ 1 callersMethod__init__
( self, in_features: int, feat_size: Union[int, Tuple[int, int]],
models/layers/maxvit/layers/attention_pool2d.py:88
↓ 1 callersMethod__init__
(self, kernel_size: int, stride=None, padding=0, ceil_mode=False, count_include_pad=True)
models/layers/maxvit/layers/pool2d_same.py:24
↓ 1 callersMethod__init__
( self, channels, rd_ratio=1. / 16, rd_channels=None, rd_divisor=8, add_maxpool=False,
models/layers/maxvit/layers/squeeze_excite.py:28
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3, stride=1, dilation=1, padding='', bias=False,
models/layers/maxvit/layers/separable_conv.py:54
↓ 1 callersMethod__init__
(self, max_res: int = 224, num_bands: int = 64, concat_grid=True, keep_spatial=False)
models/layers/maxvit/layers/pos_embed.py:114
↓ 1 callersMethod__init__
( self, channels=None, kernel_size=3, gamma=2, beta=1, act_layer=None, gate_layer='sigmoid',
models/layers/maxvit/layers/eca.py:60
↓ 1 callersMethod__init__
( self, in_channels, out_channels, kernel_size=1, stride=1, padding='', dilation=1, groups=1,
models/layers/maxvit/layers/conv_bn_act.py:13
↓ 1 callersMethod__init__
(self, in_channels, out_channels=None, kernel_size=3, stride=1, padding=None, dilation=1, gro
models/layers/maxvit/layers/split_attn.py:36
↓ 1 callersMethod__init__
( self, dim, dim_out=None, feat_size=None, stride=1, num_heads=8, dim_head=None, block_size=8, hal
models/layers/maxvit/layers/halo_attn.py:125
↓ 1 callersMethod__init__
(self, num_features, apply_act=True, eps=1e-5, rms=True, **_)
models/layers/maxvit/layers/filter_response_norm.py:20
↓ 1 callersMethod__init__
Selective Kernel Convolution Module As described in Selective Kernel Networks (https://arxiv.org/abs/1903.06586) with some modifications.
models/layers/maxvit/layers/selective_kernel.py:51
↓ 1 callersMethod_aggregate_results
Merge TTA predictions if applicable.
modules/pseudo_labeler.py:158
↓ 1 callersMethod_assert_not_numpy
(self)
data/genx_utils/labels.py:71
↓ 1 callersFunction_coco_eval
simple helper function wrapping around COCO's Python API :params: gts iterable of numpy boxes for the ground truth :params: detections itera
utils/evaluation/prophesee/metrics/coco_eval.py:100
↓ 1 callersMethod_conf_update_weight
(self)
modules/tracking/linear.py:50
↓ 1 callersMethod_create_augmentor
Create augmentor by using RandomSpatialAugmentorGenX.
data/genx_utils/sequence_streaming.py:300
↓ 1 callersMethod_create_augmentor
Create augmentor by using RandomSpatialAugmentorGenX.
data/genx_utils/dataset_rnd.py:78
↓ 1 callersFunction_crop_to_fov_filter
Fix the bbox that are partially or completely outside the frame. See https://github.com/prophesee-ai/prophesee-automotive-dataset-toolbox/issues/1
modules/utils/ssod.py:40
↓ 1 callersFunction_dat_transfer
Transfers the fields present in dtype from an old datastructure to a new datastructure xyp should be passed as a tuple args : - d
utils/evaluation/prophesee/io/dat_events_tools.py:53
↓ 1 callersFunction_evaluate_label_one_class
Evaluate bbox belonging to the same class.
modules/utils/ssod.py:209
↓ 1 callersMethod_evaluate_pseudo_label
(self, gt_obj_labels: List[ObjectLabels], pse_obj_labels: List[ObjectLabels])
modules/pseudo_labeler.py:591
↓ 1 callersFunction_faulty_huge_bbox_filter
Filter bbox that are super wide without covering objects.
modules/utils/ssod.py:100
↓ 1 callersMethod_flip
(data_dict: LoaderDataDictGenX, type_: str)
data/utils/augmentor.py:390
↓ 1 callersMethod_flip_recursive
(cls, input_: Any, flip_type: str, datatype: DataType)
data/utils/augmentor.py:411
↓ 1 callersMethod_flip_tensor
(input_: Any, flip_type: str, datatype: DataType)
data/utils/augmentor.py:396
↓ 1 callersFunction_get_ev_repr_range_indices
Computes a list of index ranges based on the input array of indices and a maximum length. The index ranges are computed such that the differe
data/genx_utils/sequence_streaming.py:22
↓ 1 callersMethod_get_highest_score_mask
Get k% pixels with the highest scores.
models/detection/yolox/models/yolo_head.py:336
↓ 1 callersMethod_get_label_and_index
Get the GT and pseudo labels and their indices.
modules/pseudo_labeler.py:549
↓ 1 callersMethod_get_labels_from_repr_idx
Return the bbox label of the frame at the end of this event repr. If not an exact match, return None.
data/genx_utils/sequence_base.py:175
↓ 1 callersFunction_get_modified_hw_multiple_of
(hw: Tuple[int, int], multiple_of: int)
config/modifier.py:111
↓ 1 callersMethod_get_pred_mask
Get frames (timesteps) we need to predict bbox.
modules/pseudo_labeler.py:514
↓ 1 callersFunction_get_scores_ious_one_class
Collect the IoUs and scores for this one class.
modules/utils/ssod.py:284
↓ 1 callersFunction_get_vit_size
(vit_dim: int)
config/modifier.py:122
↓ 1 callersMethod_get_zipped_streams
Use it only in the iter function of this class! Reason: randomized shuffling must happen within each worker. Otherwise, the same random order
data/utils/stream_concat_datapipe.py:63
↓ 1 callersMethod_get_zipped_streams_with_worker_id
Use it only in the iter function of this class!
data/utils/stream_concat_datapipe.py:94
↓ 1 callersMethod_has_lens
(self)
modules/utils/detection.py:166
↓ 1 callersMethod_hflip_bbox
Apply horizontal flip to bboxes.
modules/pseudo_labeler.py:120
↓ 1 callersMethod_hw_from_data
(data_dict: LoaderDataDictGenX)
data/utils/augmentor.py:433
↓ 1 callersMethod_ignore_bbox
Set cls_idx to `self.ignore_label` for low conf bbox.
models/detection/yolox/models/yolo_head.py:383
↓ 1 callersFunction_is_contiguous
(tensor: torch.Tensor)
models/layers/maxvit/layers/norm.py:75
↓ 1 callersFunction_kernel_valid
(k)
models/layers/maxvit/layers/selective_kernel.py:15
↓ 1 callersFunction_layer_norm_cf
(x: torch.Tensor, weight: torch.Tensor, bias: torch.Tensor, eps: float)
models/layers/maxvit/layers/norm.py:84
↓ 1 callersFunction_match_times
match ground truth boxes and ground truth detections at all timestamps using a specified tolerance return a list of boxes vectors
utils/evaluation/prophesee/metrics/coco_eval.py:62
↓ 1 callersFunction_num_groups
(num_channels, num_groups, group_size)
models/layers/maxvit/layers/norm_act.py:172
↓ 1 callersMethod_on_train_batch_end_custom
May need to load images from different labeled data.
callbacks/detection.py:33
↓ 1 callersMethod_padding
(self, x)
models/layers/maxvit/layers/median_pool.py:25
↓ 1 callersMethod_partition_attn
(self, x)
models/layers/maxvit/maxvit.py:252
↓ 1 callersMethod_predict_bbox
Run detection head on backbone features and do post-processing.
modules/pseudo_labeler.py:565
↓ 1 callersMethod_predict_step_impl
Predict bbox on a batch of event sequences.
modules/pseudo_labeler.py:623
↓ 1 callersMethod_print_seed_debug_info
Debug purpose only.
data/utils/stream_concat_datapipe.py:77
↓ 1 callersMethod_rand_another
Need to find frames with labels.
data/genx_utils/dataset_rnd.py:149
↓ 1 callersMethod_robust_velocity
Compute bbox_clamp aware velocity.
modules/tracking/linear.py:103
↓ 1 callersMethod_rotate
(self, data_dict: LoaderDataDictGenX)
data/utils/augmentor.py:359
↓ 1 callersMethod_rotate_recursive
(cls, input_: Any, angle_deg: float, datatype: DataType)
data/utils/augmentor.py:372
↓ 1 callersMethod_rotate_tensor
(input_: Any, angle_deg: float, datatype: DataType)
data/utils/augmentor.py:365
↓ 1 callersMethod_subsample_labels
Potentially sub-sample the labeled frames.
data/genx_utils/sequence_base.py:116
↓ 1 callersMethod_summarize
Convert to BBOX_DTYPE. Compute `objframe_idx_2_repr/label_idx`.
modules/pseudo_labeler.py:179
↓ 1 callersMethod_test_step_impl
(self, batch: Any, mode: Mode)
modules/utils/tta.py:248
↓ 1 callersFunction_to_coco_format
utilitary function producing our data in a COCO usable format
utils/evaluation/prophesee/metrics/coco_eval.py:143
↓ 1 callersMethod_track_filter
We might track in both directions, and take and/or.
modules/pseudo_labeler.py:268
↓ 1 callersMethod_update
(self, labels: List[ObjectLabels], ev_idx: List[int], is_padded_mask: List[bool])
modules/pseudo_labeler.py:131
↓ 1 callersMethod_update
Update labels without any TTA.
modules/utils/tta.py:123
↓ 1 callersMethod_update_gt
Append new GT labels to self.
modules/utils/tta.py:104
↓ 1 callersMethod_update_hflip
Update labels that undergo horizontal flip TTA.
modules/utils/tta.py:149
↓ 1 callersMethod_update_tflip_hflip
Update labels that undergo time-flip and hflip TTA.
modules/utils/tta.py:165
↓ 1 callersMethod_zero_zoom_out_state
Set zoom_out state as zeros.
data/utils/augmentor.py:209
↓ 1 callersMethod_zoom_in_and_rescale
(self, data_dict: LoaderDataDictGenX)
data/utils/augmentor.py:284
↓ 1 callersMethod_zoom_in_and_rescale_recursive
(cls, input_: Any, zoom_coordina
data/utils/augmentor.py:333
↓ 1 callersMethod_zoom_in_and_rescale_tensor
(input_: th.Tensor, zoom_coordinates_x0y0: Tuple[int, int],
data/utils/augmentor.py:311
↓ 1 callersMethod_zoom_out_and_rescale
(self, data_dict: LoaderDataDictGenX)
data/utils/augmentor.py:216
↓ 1 callersMethod_zoom_out_and_rescale_recursive
(cls, input_: Any, zoom_coordi
data/utils/augmentor.py:251
↓ 1 callersMethod_zoom_out_and_rescale_tensor
(input_: th.Tensor, zoom_coordinates_x0y0: Tuple[int, int],
data/utils/augmentor.py:229
↓ 1 callersFunctionadaptive_pool_feat_mult
(pool_type='avg')
models/layers/maxvit/layers/adaptive_avgmax_pool.py:17
↓ 1 callersMethodaggregate_results
Aggregate predictions and postprocess them.
modules/utils/tta.py:174
↓ 1 callersFunctionassert_activation_string
(activation_string: Optional[Union[str, Tuple[str, ...], List[str]]])
models/layers/maxvit/maxvit.py:357
↓ 1 callersMethodassign_datapipes_to_worker
Get the datapipes that this worker should process.
data/utils/stream_sharded_datapipe.py:41
↓ 1 callersFunctionassociate_tracking
For each tracker_bbox, find its closest detection_bbox in a greedy manner. Returns 3 lists of matches, unmatched_trackers, and unmatched_det
modules/tracking/linear.py:154
↓ 1 callersFunctionbuild_random_access_dataset
Build a dataset similar to torch.utils.data.Dataset. Each training seq contains a label.
data/genx_utils/dataset_rnd.py:163
↓ 1 callersFunctionbuild_recurrent_backbone
(backbone_cfg: DictConfig)
models/detection/recurrent_backbone/__init__.py:6
↓ 1 callersFunctionbuild_rotary_pos_embed
NOTE: shape arg should include spatial dim only
models/layers/maxvit/layers/pos_embed.py:163
↓ 1 callersFunctionbuild_streaming_dataset
Build a dataset similar to torch.utils.data.Dataset. Each training seq contains a label. Note: test dataset is always created with full sequen
data/genx_utils/dataset_streaming.py:23
↓ 1 callersFunctionbuild_streaming_train_dataset
( datapipes: List[MapDataPipe], dataset_config: DictConfig, batch_size: int, num_workers: int )
data/genx_utils/dataset_streaming.py:199
↓ 1 callersFunctionbuild_yolox_fpn
(fpn_cfg: DictConfig, in_channels: Tuple[int, ...])
models/detection/yolox_extension/models/build.py:22
↓ 1 callersFunctionbuild_yolox_head
(head_cfg: DictConfig, in_channels: Tuple[int, ...], strides: Tuple[int, ...], ssod: bool = False)
models/detection/yolox_extension/models/build.py:9
↓ 1 callersFunctionclamp_bbox
Clamp bbox to image boundaries.
modules/tracking/utils.py:72
↓ 1 callersMethodcollate_augm_state
Make a `B`-len list of AugmentationState objects into a single dict. Returns: { 'h_flip': {'active': `B`-len list of bool},
data/utils/augmentor.py:91
↓ 1 callersFunctioncreate_aa
(aa_layer, channels, stride=2, enable=True)
models/layers/maxvit/layers/conv_bn_act.py:44
↓ 1 callersFunctioncv2_put_text_lines
put text in the image img
utils/evaluation/prophesee/visualize/vis_utils.py:119
↓ 1 callersMethoddecode_outputs
(self, outputs)
models/detection/yolox/models/yolo_head.py:310
↓ 1 callersFunctiondrop_block_2d
DropBlock. See https://arxiv.org/pdf/1810.12890.pdf DropBlock with an experimental gaussian noise option. This layer has been tested on a few tr
models/layers/maxvit/layers/drop.py:22
↓ 1 callersFunctiondrop_block_fast_2d
DropBlock. See https://arxiv.org/pdf/1810.12890.pdf DropBlock with an experimental gaussian noise option. Simplied from above without concern fo
models/layers/maxvit/layers/drop.py:70
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for E
models/layers/maxvit/layers/drop.py:137
↓ 1 callersFunctionema_model_update
(model: th.nn.Module, ema_model: th.nn.Module, global_step: int,
modules/utils/ssod.py:430
↓ 1 callersFunctioneval_one_seq
Run the model on one event sequence and visualize it.
val_dst.py:49
↓ 1 callersMethodevaluate_buffer
(self, img_height: int, img_width: int, ret_pr_curve: bool = False)
utils/evaluation/prophesee/evaluator.py:73
↓ 1 callersFunctionevaluate_detection
Compute detection KPIs on list of boxes in the numpy format, using the COCO python API https://github.com/cocodataset/cocoapi KPIs are on
utils/evaluation/prophesee/metrics/coco_eval.py:32
↓ 1 callersFunctionevent2rgb
Ignore the polarity of events.
vis_pred.py:74
↓ 1 callersMethodfeat_mult
(self)
models/layers/maxvit/layers/adaptive_avgmax_pool.py:111
← previousnext →201–300 of 938, ranked by callers