MCPcopy Create free account

hub / github.com/Wuziyi616/LEOD / functions

Functions938 in github.com/Wuziyi616/LEOD

↓ 73 callersMethodto
(self, *args, **kwargs)
data/genx_utils/labels.py:75
↓ 41 callersMethodget
(self, request: str)
data/genx_utils/labels.py:112
↓ 29 callersFunction_assert
(condition: bool, message: str)
models/layers/maxvit/layers/trace_utils.py:4
↓ 18 callersMethodnew_zeros
Create an empty ObjectLabels.
data/genx_utils/labels.py:288
↓ 17 callersMethodkeys
(cls)
data/genx_utils/labels.py:109
↓ 14 callersFunctioncreate_act_layer
(name: Union[nn.Module, str], inplace=None, **kwargs)
models/layers/maxvit/layers/create_act.py:144
↓ 13 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
models/layers/maxvit/layers/weight_init.py:43
↓ 13 callersMethodupdate
General interface for updating new predictions and labels.
modules/utils/tta.py:77
↓ 12 callersFunctionmake_divisible
(v, divisor=8, min_value=None, round_limit=.9)
models/layers/maxvit/layers/helpers.py:25
↓ 9 callersMethodget_labels_as_tensors
Returns bbox labels in shape [num_bbox, 5].
data/genx_utils/labels.py:543
↓ 8 callersMethod__init__
(self, num_features, apply_act=True, momentum=0.1, eps=1e-3, **_)
models/layers/maxvit/layers/evo_norm.py:100
↓ 8 callersMethod__init__
(self, inplace: bool = False)
models/layers/maxvit/layers/activations.py:39
↓ 8 callersMethod_is_int_tensor
(tensor: th.Tensor)
data/utils/representations.py:34
↓ 8 callersFunctioncreate_conv2d
Select a 2d convolution implementation based on arguments Creates and returns one of torch.nn.Conv2d, Conv2dSame, MixedConv2d, or CondConv2d.
models/layers/maxvit/layers/create_conv2d.py:11
↓ 8 callersMethodflip_lr_
(self)
data/genx_utils/labels.py:506
↓ 8 callersFunctionget_act_layer
Activation Layer Factory Fetching activation layers by name with this function allows export or torch script friendly functions to be returne
models/layers/maxvit/layers/create_act.py:125
↓ 8 callersMethodscale_
(self, scaling_multiplier: float)
data/genx_utils/labels.py:486
↓ 7 callersMethod__init__
(self, dim_in: int, dim_out: int, channel_last: bool,
models/layers/maxvit/maxvit.py:57
↓ 7 callersFunctionfetch_data_module
Build dataloaders.
modules/utils/fetch.py:22
↓ 7 callersFunctionget_ev_dir
Get event representation directory.
data/utils/misc.py:49
↓ 7 callersFunctionis_fast_norm
()
models/layers/maxvit/layers/fast_norm.py:25
↓ 7 callersFunctionpad_same
(x, k: List[int], s: List[int], d: List[int] = (1, 1), value: float = 0)
models/layers/maxvit/layers/padding.py:28
↓ 7 callersFunctiontorch_uniform_sample_scalar
(min_value: float, max_value: float)
utils/helpers.py:13
↓ 6 callersMethodforward_backbone
Extract multi-stage features from the backbone. Input: x: (B, C, H, W), image previous_states: List[(lstm_h, lstm_c)]
models/detection/yolox_extension/models/detector.py:35
↓ 6 callersMethodforward_detect
Predict object bbox from multi-stage features. Returns: outputs: (B, N, 4 + 1 + num_cls), [(x, y, w, h), obj_conf, cls]
models/detection/yolox_extension/models/detector.py:55
↓ 6 callersMethodget_valid_labels_and_batch_indices
Return a list of valid bbox labels and their idx.
data/genx_utils/labels.py:716
↓ 6 callersMethodis_pseudo_label
(self)
data/genx_utils/labels.py:172
↓ 6 callersMethodreset
(self, worker_id: int, indices_or_bool_tensor: Optional[Union[List[int], torch.Tensor]] = None)
modules/utils/detection.py:183
↓ 5 callersMethod__init__
( self, channels, rd_ratio=1./16, rd_channels=None, rd_divisor=1, spatial_kernel_size=
models/layers/maxvit/layers/cbam.py:83
↓ 5 callersFunctiondynamically_modify_train_config
(config: DictConfig)
config/modifier.py:10
↓ 5 callersFunctionget_padding
(kernel_size: int, stride: int = 1, dilation: int = 1, **_)
models/layers/maxvit/layers/padding.py:12
↓ 5 callersFunctionget_padding_value
(padding, kernel_size, **kwargs)
models/layers/maxvit/layers/padding.py:36
↓ 5 callersMethodget_worker_id_from_batch
(self, batch: Any)
modules/detection.py:126
↓ 5 callersMethodnumpy_
In place conversion to numpy (detach + to cpu + to numpy).
data/genx_utils/labels.py:82
↓ 5 callersFunctionpostprocess
Apply NMS on predicted bboxes. Input: predictions: (B, N, 4 + 1 + num_cls), [(x, y, w, h), obj_conf, cls] Returns: output: L
models/detection/yolox/utils/boxes.py:32
↓ 5 callersMethodrun_psee_evaluator
(self, mode: Mode, log: bool = True, reset_buffer: bool = True,
modules/detection.py:409
↓ 5 callersMethodsetup
(self, stage: Optional[str] = None)
modules/detection.py:57
↓ 5 callersFunctionsubsample_sequence
Subsample the sequence under a folder by a given ratio.
utils/preprocessing.py:18
↓ 4 callersMethod__init__
(self, inplace: bool = False)
models/layers/maxvit/layers/activations_jit.py:41
↓ 4 callersMethod__init__
(self, inplace: bool = False)
models/layers/maxvit/layers/activations_me.py:92
↓ 4 callersMethod__init__
(self, num_channels, num_groups=32, eps=1e-5, affine=True)
models/layers/maxvit/layers/norm.py:16
↓ 4 callersMethod__init__
( self, num_channels, num_groups=32, eps=1e-5, affine=True, group_size=None, apply_act
models/layers/maxvit/layers/norm_act.py:181
↓ 4 callersFunction_ntuple
(n)
models/layers/maxvit/layers/helpers.py:10
↓ 4 callersMethodadd_backbone_features
(self, backbone_features: BackboneFeatures, select
modules/utils/detection.py:37
↓ 4 callersMethodadd_labels
(self, labels: List[np.ndarray])
utils/evaluation/prophesee/evaluator.py:63
↓ 4 callersMethodadd_predictions
(self, predictions: List[np.ndarray])
utils/evaluation/prophesee/evaluator.py:60
↓ 4 callersFunctionbboxes_iou
both boxes: [M/N, 4]; xyxy: False --> [x, y, w, h] center format.
models/detection/yolox/utils/boxes.py:89
↓ 4 callersFunctiondraw_bboxes
draw bboxes in the image img
utils/evaluation/prophesee/visualize/vis_utils.py:98
↓ 4 callersFunctionfast_layer_norm
( x: torch.Tensor, normalized_shape: List[int], weight: Optional[torch.Tensor] = None, bias: O
models/layers/maxvit/layers/fast_norm.py:56
↓ 4 callersFunctionfetch_model_module
Build model.
modules/utils/fetch.py:10
↓ 4 callersFunctionfilter_w_thresh
Filter the scores with one or per-class thresholds.
modules/utils/ssod.py:136
↓ 4 callersMethodget_batched_backbone_features
(self)
modules/utils/detection.py:51
↓ 4 callersFunctionget_dataloader_kwargs
For streaming dataset, we do NO batching. Normal for random dataset.
modules/data/genx.py:17
↓ 4 callersFunctionget_ev_h5_fn
Get event representation h5 file name.
data/utils/misc.py:68
↓ 4 callersFunctionget_labelmap
(dst_name: str = None, num_cls: int = None)
utils/evaluation/prophesee/evaluator.py:14
↓ 4 callersFunctionget_norm_act_layer
(norm_layer, act_layer=None)
models/layers/maxvit/layers/create_norm_act.py:52
↓ 4 callersMethodget_states
(self, worker_id: int)
modules/utils/detection.py:145
↓ 4 callersFunctiongroup_std
(x, groups: int = 32, eps: float = 1e-5, flatten: bool = False)
models/layers/maxvit/layers/evo_norm.py:62
↓ 4 callersMethodhas_data
(self)
utils/evaluation/prophesee/evaluator.py:70
↓ 4 callersFunctionis_exportable
()
models/layers/maxvit/layers/config.py:44
↓ 4 callersFunctionis_no_jit
()
models/layers/maxvit/layers/config.py:25
↓ 4 callersMethodload_weight
Load checkpoint from a file. Args: ckp_path (str): Path to checkpoint file. strict (bool, optional): Whether to allow
modules/detection.py:583
↓ 4 callersMethodsave_states_and_detach
Store the RNN states to this worker_id (random/streaming data).
modules/utils/detection.py:141
↓ 4 callersMethodseek_event
seek in the file by ev_count events :param ev_count: seek in the file after ev_count events Note that current time will be se
utils/evaluation/prophesee/io/psee_loader.py:162
↓ 4 callersMethodset_empty_labels_to_none_
(self)
data/genx_utils/labels.py:640
↓ 4 callersMethodto_dict
(self)
data/utils/augmentor.py:50
↓ 4 callersFunctionto_prophesee
(loaded_label_list: LOADED_LABELS, yolox_pred_list: YOLOX_PRED_PROCESSED)
utils/evaluation/prophesee/io/box_loading.py:58
↓ 4 callersMethodzoom_in_and_rescale_
1) Computes a new smaller canvas size: original canvas scaled by a factor of 1/zoom_in_factor (downscaling) 2) Places the smaller can
data/genx_utils/labels.py:372
↓ 4 callersMethodzoom_out_and_rescale_
1) Scales the input by a factor of 1/zoom_out_factor (i.e. reduces the canvas size) 2) Places the downscaled canvas into the original
data/genx_utils/labels.py:436
↓ 3 callersMethod__init__
(self, in_channels, out_channels, ksize, stride=1, act="silu")
models/detection/yolox/models/network_blocks.py:60
↓ 3 callersMethod__init__
( self, in_channel, out_channels, kernel_size, stride=1, padding=None, dilation=1, gro
models/layers/maxvit/layers/std_conv.py:32
↓ 3 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, bias=True, drop=0.)
models/layers/maxvit/layers/mlp.py:13
↓ 3 callersMethod__init__
(self, output_size=1)
models/layers/maxvit/layers/adaptive_avgmax_pool.py:62
↓ 3 callersFunction_all_is_type
Check if all elements in a list are of a certain type.
data/utils/ssod_augmentor.py:11
↓ 3 callersFunction_all_same_len
Check if all elements in a list have the same length.
data/utils/ssod_augmentor.py:16
↓ 3 callersMethod_del_tracker
Delete self.trackers[idx], move it to self.del_trackers.
modules/tracking/tracker.py:25
↓ 3 callersMethod_get_event_repr_torch
Load a list of event repr in torch.float32 tensor, each [C, H, W].
data/genx_utils/sequence_base.py:184
↓ 3 callersMethod_update_pred
Append new model predictions to self.
modules/utils/tta.py:114
↓ 3 callersFunctionadaptive_avgmax_pool2d
(x, output_size=1)
models/layers/maxvit/layers/adaptive_avgmax_pool.py:24
↓ 3 callersFunctionapply_rot_embed
(x: torch.Tensor, sin_emb, cos_emb)
models/layers/maxvit/layers/pos_embed.py:148
↓ 3 callersFunctionconstruct_bbox
Construct a bbox from 4 coords (xyxy/xywh).
utils/bbox.py:49
↓ 3 callersMethoddtype
(self)
data/genx_utils/labels.py:180
↓ 3 callersFunctionfast_group_norm
( x: torch.Tensor, num_groups: int, weight: Optional[torch.Tensor] = None, bias: Optional[torc
models/layers/maxvit/layers/fast_norm.py:34
↓ 3 callersMethodfrom_structured_array
(labels: np.ndarray, input_size_hw: Tuple[int, int],
data/genx_utils/labels.py:295
↓ 3 callersMethodget_assignments
( self, num_gt, gt_bboxes_per_image, # [n, 4] gt_classes, # [n] bbox
models/detection/yolox/models/yolo_head.py:607
↓ 3 callersFunctionget_bbox_coords
Get the 4 coords (xyxy/xywh) from a bbox array or tensor.
utils/bbox.py:31
↓ 3 callersMethodget_data_from_batch
(self, batch: Any)
modules/detection.py:129
↓ 3 callersMethodis_gt_label
(self)
data/genx_utils/labels.py:168
↓ 3 callersFunctionmanual_var
(x, dim: Union[int, Sequence[int]], diff_sqm: bool = False)
models/layers/maxvit/layers/evo_norm.py:52
↓ 3 callersMethodnew
Create a new tracker.
modules/tracking/tracker.py:40
↓ 3 callersFunctionnp_th_stack
Stack a list of numpy arrays or tensors.
utils/bbox.py:11
↓ 3 callersMethodpad_tensor_ev_repr
(self, ev_repr: th.Tensor)
utils/padding.py:50
↓ 3 callersFunctionpixel_freq_bands
( num_bands: int, max_freq: float = 224., linear_bands: bool = True, dtype: to
models/layers/maxvit/layers/pos_embed.py:8
↓ 3 callersFunctionread_npz_labels
Read labels from npz file.
data/utils/misc.py:19
↓ 3 callersMethodremove_flat_labels_
(self)
data/genx_utils/labels.py:67
↓ 3 callersFunctionrot
(x)
models/layers/maxvit/layers/pos_embed.py:144
↓ 3 callersMethodrotate_
(self, angle_deg: float)
data/genx_utils/labels.py:327
↓ 3 callersMethodsave
Save labels, soft-link ev_repr. save_dir + self.path ├── event_representations_v2 │ └── ev_representation_name
modules/pseudo_labeler.py:335
↓ 3 callersFunctionth_cat
(tensor_lst: List[th.Tensor], dim: int = 0)
utils/helpers.py:7
↓ 3 callersMethodtotal_time
get total duration of video in mus, providing there is no overflow :return:
utils/evaluation/prophesee/io/psee_loader.py:230
next →1–100 of 938, ranked by callers