MCPcopy Create free account

hub / github.com/Lizhuoling/UniMODE / functions

Functions454 in github.com/Lizhuoling/UniMODE

↓ 38 callersFunctionprint
(*args, **kwargs)
model/util/default.py:73
↓ 30 callersMethodinfo
(self)
model/data/datasets.py:302
↓ 14 callersFunctionbox3d_overlap
Computes the intersection of 3D boxes_dt and boxes_gt. Inputs boxes_dt, boxes_gt are tensors of shape (B, 8, 3) (where B doesn't have to
model/evaluation/omni3d_evaluation.py:108
↓ 13 callersMethodload_pretrained_model
(self, data='imagenet', name='dla34', hash='ba72cf86')
model/modeling/backbone/dla.py:301
↓ 13 callersFunctionto_float_tensor
(input)
model/util/math_util.py:108
↓ 9 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0., norm
model/modeling/backbone/eva.py:127
↓ 6 callersMethod__init__
(self, levels, channels, num_classes=1000, block=BasicBlock, residual_root=False, return_leve
model/modeling/backbone/dla.py:235
↓ 6 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
model/modeling/detector3d/deformable_detr.py:450
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
model/modeling/detector3d/detr_transformer.py:243
↓ 5 callersMethod__init__
Args: img_size (int): Input image size. patch_size (int): Patch size. in_chans (int): Number of input ima
model/modeling/backbone/eva_det.py:297
↓ 5 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
model/modeling/detector3d/detr_transformer.py:25
↓ 5 callersFunctiondraw_line
(im, v0, v1, color=(0, 200, 200), thickness=1)
model/vis/vis.py:59
↓ 5 callersFunctiondraw_text
(im, text, pos, scale=0.4, color='auto', font=cv2.FONT_HERSHEY_SIMPLEX, bg_color=(0, 255, 255),
model/vis/vis.py:658
↓ 5 callersMethodstep
Perform the appropriate action at the given iteration. Args: iteration (int): the current iteration, ranged in [0, max_i
model/solver/checkpoint.py:6
↓ 4 callersMethod__init__
Args: input_ch(int) : the number of input channel out_features (list[str]): name of the layers whose outputs should
model/modeling/backbone/vovnet.py:290
↓ 4 callersMethod__init__
(self, dim, drop_path=0., layer_scale_init_value=1e-6)
model/modeling/backbone/convnext.py:21
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
model/modeling/detector3d/depthnet.py:132
↓ 4 callersFunction_cfg
(url='', **kwargs)
model/modeling/backbone/eva.py:37
↓ 4 callersFunctionget_omni3d_categories
Returns the Omni3D categories for dataset Args: dataset: str Returns: cats: set of strings with category names
model/data/builtin.py:3
↓ 4 callersFunctionget_world_size
()
model/util/torch_dist.py:12
↓ 3 callersMethod_get_local_path
(self, path)
model/util/model_zoo.py:18
↓ 3 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval :param p: input params for evaluation :return: None
model/evaluation/omni3d_evaluation.py:1184
↓ 3 callersFunctiondo_test
(cfg, model, iteration='final', storage=None)
tools/train_net.py:60
↓ 3 callersFunctiondraw_3d_box_from_verts
Draws a scene from multiple different modes. Args: im (array): the image to draw onto K (array): the 3x3 matrix for projecti
model/vis/vis.py:573
↓ 3 callersFunctionsetup
Create configs and perform basic setups.
tools/train_net.py:338
↓ 3 callersFunctionsimple_register
(dataset_name, filter_settings, filter_empty=False, datasets_root_path=None)
model/data/datasets.py:128
↓ 3 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this functin can *only* be applied on the default parameter setting
model/evaluation/omni3d_evaluation.py:1624
↓ 2 callersMethod__init__
(self, c_dim, f_dim=256)
model/modeling/detector3d/detector3d.py:978
↓ 2 callersFunction_add_cls_to_index_matrix
(index, num_tokens, offset)
model/modeling/backbone/eva.py:490
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string
model/modeling/detector3d/detr_transformer.py:491
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string
model/modeling/detector3d/deformable_detr.py:408
↓ 2 callersFunction_get_clones
(module, N)
model/modeling/detector3d/detr_transformer.py:473
↓ 2 callersFunction_get_clones
(module, N)
model/modeling/detector3d/deformable_detr.py:404
↓ 2 callersMethod_make_conv_level
(self, inplanes, planes, convs, stride=1, dilation=1)
model/modeling/backbone/dla.py:288
↓ 2 callersFunction_mask_1d_rel_pos_index
(seq_len)
model/modeling/backbone/eva.py:485
↓ 2 callersMethodassign
Input: bbox_preds shape: (num_query, attr_num), attr order: ('loc', 'dim', 'pose', 'uncern') cls_scores shape: (num_q
model/modeling/detector3d/hungarian_assigner_3d.py:68
↓ 2 callersMethodbackward
(ctx, grad_output_features)
voxel_pooling/voxel_pooling_train.py:68
↓ 2 callersFunctionconv1x1
1x1 convolution with padding
model/modeling/backbone/vovnet.py:146
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
model/modeling/backbone/vovnet.py:126
↓ 2 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 Ef
model/modeling/backbone/convnext.py:57
↓ 2 callersMethodevaluate
Runs the evaluation for an individual dataset split, assuming all predictions have been passed in. Args: datas
model/evaluation/omni3d_evaluation.py:297
↓ 2 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs
model/evaluation/omni3d_evaluation.py:1327
↓ 2 callersFunctionfreeze_bn
(network)
model/solver/build.py:85
↓ 2 callersFunctionget_cuboid_verts
(K, box3d, R=None, view_R=None, view_T=None)
model/util/math_util.py:222
↓ 2 callersFunctionget_cuboid_verts_faces
Computes vertices and faces from a 3D cuboid representation. Args: bbox3d (flexible): [[X Y Z W H L]] R (flexible): [np.array
model/util/math_util.py:117
↓ 2 callersFunctionget_detection_dataset_dicts
(names, filter_empty=True, **kwargs)
model/data/build.py:27
↓ 2 callersMethodinit_weights
(self)
model/modeling/detector3d/detector3d.py:616
↓ 2 callersFunctioninstances_to_coco_json
(instances, img_id)
model/evaluation/omni3d_evaluation.py:980
↓ 2 callersFunctionintersect
Computes the amount of intersect between two different sets of boxes. Args: box_a (nparray): Mx4 boxes, defined by [x1, y1, x2, y2]
model/util/math_util.py:909
↓ 2 callersFunctionis_ignore
(anno, filter_settings, image_height)
model/data/datasets.py:85
↓ 2 callersFunctionms_deform_attn_core_pytorch
(value, value_spatial_shapes, sampling_locations, attention_weights)
model/deformable_ops/functions/ms_deform_attn_func.py:41
↓ 2 callersFunctionpos2posemb3d
(pos, num_pos_feats=128, temperature=10000)
model/modeling/detector3d/detector3d.py:957
↓ 2 callersFunctionremove_rope
(checkpoint)
model/modeling/backbone/eva.py:813
↓ 2 callersFunctionrepeat_factors_from_category_frequency
Compute (fractional) per-image repeat factors based on category frequency. The repeat factor for an image is a function of the freque
model/data/build.py:130
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
model/modeling/detector3d/detr_transformer.py:155
↓ 2 callersMethodwith_pos_embed
(tensor, pos)
model/modeling/detector3d/deformable_detr.py:294
↓ 1 callersMethod__init__
(self, alpha=2, beta=4)
model/modeling/detector3d/center_head.py:221
↓ 1 callersMethod__init__
(self, embed_dim, num_heads, bias=True, batch_first=True, attention_dropout=0.0, causal=False
model/modeling/detector3d/attention.py:102
↓ 1 callersMethod__init__
(self, num_feats, temperature=10000, normalize=False,
model/util/position_encoding.py:39
↓ 1 callersFunction_check_coplanar
Checks that plane vertices are coplanar. Returns a bool tensor of size B, where True indicates a box is coplanar.
model/evaluation/omni3d_evaluation.py:67
↓ 1 callersFunction_check_nonzero
Checks that the sides of the box have a non zero area. Returns a bool tensor of size B, where True indicates a box is nonzero.
model/evaluation/omni3d_evaluation.py:91
↓ 1 callersMethod_derive_omni_results
Derive the desired score numbers from summarized COCOeval. Args: omni_eval (None or Omni3Deval): None represents no predi
model/evaluation/omni3d_evaluation.py:771
↓ 1 callersFunction_evaluate_predictions_on_omni
Evaluate the coco results using COCOEval API.
model/evaluation/omni3d_evaluation.py:944
↓ 1 callersMethod_forward
(self, x)
model/modeling/backbone/vovnet.py:221
↓ 1 callersMethod_forward
(self, src, src_mask: Optional[Tensor] = None, src_key_padding_mask: Optional[
model/modeling/detector3d/detr_transformer.py:187
↓ 1 callersMethod_forward
(self, tgt, memory, tgt_mask: Optional[Tensor] = None, memory_mask: Optional[T
model/modeling/detector3d/detr_transformer.py:290
↓ 1 callersMethod_forward
Input: - src: [bs, sum(hi*wi), 256] - spatial_shapes: h,w of each level [num_level, 2] - level_start_inde
model/modeling/detector3d/deformable_detr.py:222
↓ 1 callersMethod_forward
(self, tgt, query_pos, reference_points, src, src_spatial_shapes, level_start_index, src_padding_mask=None, da
model/modeling/detector3d/deformable_detr.py:328
↓ 1 callersMethod_freeze_stages
(self)
model/modeling/backbone/vovnet.py:385
↓ 1 callersFunction_in_projection_packed
(q, k, v, w, b = None)
model/modeling/detector3d/attention.py:26
↓ 1 callersMethod_init_weight
(self)
model/modeling/detector3d/depthnet.py:33
↓ 1 callersMethod_init_weight
(self)
model/modeling/detector3d/depthnet.py:107
↓ 1 callersFunction_is_power_of_2
(n)
model/deformable_ops/modules/ms_deform_attn.py:24
↓ 1 callersFunction_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a tuple of 3 e
model/util/util.py:271
↓ 1 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params
model/evaluation/omni3d_evaluation.py:1152
↓ 1 callersMethod_reset_parameters
(self)
model/modeling/detector3d/detr_transformer.py:48
↓ 1 callersMethod_reset_parameters
(self)
model/modeling/detector3d/deformable_detr.py:67
↓ 1 callersMethod_reset_parameters
(self)
model/modeling/detector3d/attention.py:125
↓ 1 callersMethod_reset_parameters
(self)
model/deformable_ops/modules/ms_deform_attn.py:62
↓ 1 callersMethodadd_predictions
Adds predictions to the evaluator for dataset_name. This can be any number of predictions, including all predictions passed in at onc
model/evaluation/omni3d_evaluation.py:251
↓ 1 callersFunctionallreduce_dict
Reduce the values in the dictionary from all processes so that process with rank 0 has the reduced results. Args: input_dict (dic
tools/train_net.py:489
↓ 1 callersFunctionannotations_to_instances
(annos, image_size, unknown_categories)
model/data/dataset_mapper.py:311
↓ 1 callersFunctionapprox_eval_resolution
Approximates the resolution an image with h x w resolution would run through a model at which constrains the scale to a min and max. Arg
model/util/math_util.py:264
↓ 1 callersFunctionbackbone_cfgs
(backbone_name, cfg)
model/modeling/detector3d/detector3d.py:252
↓ 1 callersFunctionbox_iou
(boxes1, boxes2)
model/util/util.py:325
↓ 1 callersFunctionbroadcat
(tensors, dim = -1)
model/modeling/backbone/eva.py:90
↓ 1 callersFunctionbuild_3d_detector
(cfg)
model/modeling/detector3d/build.py:5
↓ 1 callersFunctionbuild_augmentation
Create a list of default :class:`Augmentation` from config. Now it includes resizing and flipping. Returns: list[Augmentation]
model/data/dataset_mapper.py:208
↓ 1 callersFunctionbuild_deformable_transformer
(**kwargs)
model/modeling/detector3d/deformable_detr.py:16
↓ 1 callersFunctionbuild_detection_test_loader
(dataset, *, mapper, sampler=None, num_workers=0)
model/data/build.py:217
↓ 1 callersFunctionbuild_detection_train_loader
(dataset, *, mapper, sampler=None, total_batch_size, aspect_ratio_grouping=True, num_workers=0)
model/data/build.py:178
↓ 1 callersFunctionbuild_detr_transformer
(hidden_dim, dropout, nheads, dim_feedforward, enc_layers, dec_layers, pre_norm, cfg = None)
model/modeling/detector3d/detr_transformer.py:477
↓ 1 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
model/solver/build.py:92
↓ 1 callersFunctionbuild_model
Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. Note that it does not load any weights from ``cfg``.
model/modeling/meta_arch/build_model.py:7
↓ 1 callersFunctionbuild_optimizer
(cfg, model)
model/solver/build.py:11
↓ 1 callersFunctioncheck_forward_equal_with_pytorch_double
()
model/deformable_ops/test.py:32
↓ 1 callersFunctioncheck_forward_equal_with_pytorch_float
()
model/deformable_ops/test.py:48
↓ 1 callersFunctioncheck_gradient_numerical
(channels=4, grad_value=True, grad_sampling_loc=True, grad_attn_weight=True)
model/deformable_ops/test.py:63
↓ 1 callersMethodcomputeIoU
ComputeIoU computes the IoUs by sorting based on "score" for either 2D boxes (in 2D mode) or 3D boxes (in 3D mode)
model/evaluation/omni3d_evaluation.py:1371
↓ 1 callersFunctioncompute_cluster_scale_mean
(scales, assignments, n_bins, match_quality)
model/util/math_util.py:406
next →1–100 of 454, ranked by callers