MCPcopy Create free account

hub / github.com/Westlake-AGI-Lab/Distill-Any-Depth / functions

Functions3,350 in github.com/Westlake-AGI-Lab/Distill-Any-Depth

↓ 2 callersFunction_build_weighted_sampler
(cfg, enable_category_balance=False)
detectron2/detectron2/data/build.py:406
↓ 2 callersMethod_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
detectron2/detectron2/export/caffe2_modeling.py:199
↓ 2 callersMethod_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
detectron2/detectron2/layers/deform_conv.py:165
↓ 2 callersFunction_calculate_record_field_size_b
(data_schema: Dict[str, SizeData], field_name: str)
detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py:24
↓ 2 callersFunction_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
detectron2/detectron2/config/config.py:251
↓ 2 callersMethod_check_schema
(self, schema)
detectron2/tests/test_export_torchscript.py:298
↓ 2 callersMethod_contours
(self, image_bgr, arr, segm, bbox_xywh)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:169
↓ 2 callersMethod_convertDictPredictionToInstance
convert prediction from Dict to D2 Instances format
detectron2/tests/tracking/test_iou_weighted_hungarian_bbox_iou_tracker.py:62
↓ 2 callersMethod_convertDictPredictionToInstance
convert prediction from Dict to D2 Instances format
detectron2/tests/tracking/test_bbox_iou_tracker.py:60
↓ 2 callersMethod_convertDictPredictionToInstance
convert prediction from Dict to D2 Instances format
detectron2/tests/tracking/test_hungarian_tracker.py:56
↓ 2 callersMethod_convertDictPredictionToInstance
convert prediction from Dict to D2 Instances format
detectron2/tests/tracking/test_vanilla_hungarian_bbox_iou_tracker.py:62
↓ 2 callersFunction_create_grid_offsets
( size: List[int], stride: int, offset: float, target_device_tensor: torch.Tensor )
detectron2/detectron2/modeling/anchor_generator.py:39
↓ 2 callersMethod_create_instances_fulldp
(self)
detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py:111
↓ 2 callersMethod_create_instances_nodp
(self)
detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py:46
↓ 2 callersMethod_create_instances_sparsedp
(self)
detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py:70
↓ 2 callersFunction_create_zeros
( batch_target: Optional[torch.Tensor], channels: int, height: int, width: int, like_tenso
detectron2/detectron2/modeling/poolers.py:102
↓ 2 callersMethod_decode_multi_level_predictions
Run `_decode_per_level_predictions` for all feature levels and concat the results.
detectron2/detectron2/modeling/meta_arch/dense_detector.py:235
↓ 2 callersMethod_decode_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
detectron2/detectron2/modeling/proposal_generator/rpn.py:514
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
detectron2/detectron2/evaluation/coco_evaluation.py:323
↓ 2 callersMethod_do_eval
(self)
detectron2/detectron2/engine/hooks.py:528
↓ 2 callersMethod_draw_text_in_mask
Find proper places to draw text given a binary mask.
detectron2/detectron2/utils/visualizer.py:1251
↓ 2 callersMethod_ema_update
Apply EMA update to `self.name` using `value`. This is mainly used for loss normalizer. In Detectron1, loss is normalized by number
detectron2/detectron2/modeling/meta_arch/dense_detector.py:160
↓ 2 callersFunction_expand_param_groups
(params: List[Dict[str, Any]])
detectron2/detectron2/solver/build.py:238
↓ 2 callersMethod_extract_iuv
Extract arrays of I, U and V values at given points as numpy arrays given the data mode stored in self._dpDataMode
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:583
↓ 2 callersMethod_extract_mask
(self, dt: Dict[str, Any])
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:538
↓ 2 callersFunction_extract_u_from_iuvarr
(iuv_arr)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:82
↓ 2 callersFunction_extract_v_from_iuvarr
(iuv_arr)
detectron2/projects/DensePose/densepose/vis/densepose_results.py:86
↓ 2 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
detectron2/detectron2/modeling/roi_heads/roi_heads.py:780
↓ 2 callersMethod_forward_box
Args: features, targets: the same as in Same as in :meth:`ROIHeads.forward`. proposals (list[Instance
detectron2/detectron2/modeling/roi_heads/cascade_rcnn.py:153
↓ 2 callersMethod_forward_densepose
Forward logic of the densepose prediction branch. Args: features (dict[str, Tensor]): input data as a mapping from featu
detectron2/projects/DensePose/densepose/modeling/roi_heads/roi_head.py:129
↓ 2 callersFunction_get_args_from_config
Use `from_config` to obtain explicit arguments. Returns: dict: arguments to be used for cls.__init__
detectron2/detectron2/config/config.py:218
↓ 2 callersMethod_get_augmented_inputs
(self, input)
detectron2/detectron2/modeling/test_time_augmentation.py:239
↓ 2 callersFunction_get_cityscapes_files
(image_dir, gt_dir)
detectron2/detectron2/data/datasets/cityscapes.py:27
↓ 2 callersFunction_get_device_type
(torch_tensor)
detectron2/detectron2/export/caffe2_export.py:87
↓ 2 callersMethod_get_embeddings_and_geodists_for_mesh
Produces embeddings and geodesic distance tensors for a given mesh. May subsample the mesh, if it contains too many vertices (control
detectron2/projects/DensePose/densepose/modeling/losses/cycle_shape2shape.py:68
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
detectron2/detectron2/utils/comm.py:127
↓ 2 callersMethod_get_kwargs
(self)
detectron2/tests/data/test_dataset.py:118
↓ 2 callersMethod_get_layer_name
(self, i: int)
detectron2/projects/DensePose/densepose/modeling/roi_heads/v1convx.py:64
↓ 2 callersMethod_get_layer_name
(self, i: int)
detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py:75
↓ 2 callersMethod_get_local_indices
(total_size, world_size, rank)
detectron2/detectron2/data/samplers/distributed_sampler.py:274
↓ 2 callersMethod_get_point_logits
(self, point_fine_grained_features, point_coords, coarse_mask)
detectron2/projects/PointRend/point_rend/mask_head.py:297
↓ 2 callersMethod_get_rpn_conv
(self, in_channels, out_channels)
detectron2/detectron2/modeling/proposal_generator/rpn.py:126
↓ 2 callersFunction_get_script_mod
(mod)
detectron2/detectron2/export/torchscript.py:75
↓ 2 callersFunction_grouper
Group elements of an iterable by chunks of size `n`, e.g. grouper(range(9), 4) -> (0, 1, 2, 3), (4, 5, 6, 7), (8, None, None, None)
detectron2/projects/DensePose/tests/test_combine_data_loader.py:10
↓ 2 callersFunction_has
(name: str)
detectron2/detectron2/config/compat.py:91
↓ 2 callersFunction_highlight
(code, filename)
detectron2/detectron2/engine/defaults.py:160
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
detectron2/detectron2/utils/memory.py:12
↓ 2 callersFunction_import_file
(module_name, file_path, make_importable=False)
detectron2/detectron2/utils/env.py:50
↓ 2 callersMethod_is_range_spec
(self, field_value_or_range)
detectron2/projects/DensePose/densepose/utils/dbhelper.py:135
↓ 2 callersFunction_is_tracing
()
detectron2/detectron2/modeling/proposal_generator/proposal_utils.py:13
↓ 2 callersFunction_linear_interpolation_utilities
Computes utility values for linear interpolation at points v. The points are given as normalized offsets in the source interval (v0_src,
detectron2/projects/DensePose/densepose/modeling/losses/utils.py:18
↓ 2 callersFunction_list_to_str
(bsize)
detectron2/detectron2/export/shared.py:514
↓ 2 callersMethod_log_time
(self, msg, avg, all_times, distributed=False)
detectron2/detectron2/data/benchmark.py:106
↓ 2 callersFunction_longest_common_prefix
["abc.zfg", "abc.zef"] -> "abc."
detectron2/detectron2/checkpoint/c2_model_loading.py:371
↓ 2 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
distillanydepth/midas/backbones/vit.py:75
↓ 2 callersMethod_mask_to_boundary
(self, mask: np.ndarray, dilation_ratio=0.02)
detectron2/detectron2/evaluation/sem_seg_evaluation.py:254
↓ 2 callersFunction_maybe_add_class_to_mesh_name_map_to_metadata
(dataset_names: List[str], cfg: CfgNode)
detectron2/projects/DensePose/densepose/data/build.py:309
↓ 2 callersFunction_maybe_create_general_keep_instance_predicate
(cfg: CfgNode)
detectron2/projects/DensePose/densepose/data/build.py:152
↓ 2 callersMethod_merge_a_into_b
merge dict ``a`` into dict ``b`` (non-inplace). Values in ``a`` will overwrite ``b``. ``b`` is copied first to avoid in-place modific
distillanydepth/utils/mmcv_config.py:377
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
detectron2/tests/config/test_yacs_config.py:39
↓ 2 callersMethod_merge_detections
(self, all_boxes, all_scores, all_classes, shape_hw)
detectron2/detectron2/modeling/test_time_augmentation.py:262
↓ 2 callersFunction_op_stats
(net_def)
detectron2/detectron2/export/caffe2_export.py:70
↓ 2 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py:184
↓ 2 callersFunction_print_panoptic_results
(pq_res)
detectron2/detectron2/evaluation/panoptic_evaluation.py:168
↓ 2 callersMethod_produce_index_sample
Abstract method to produce a sample of indices to select data To be implemented in descendants Args: values (tor
detectron2/projects/DensePose/densepose/data/samplers/densepose_base.py:96
↓ 2 callersFunction_random_package_name
(filename)
detectron2/detectron2/config/lazy.py:97
↓ 2 callersMethod_reduce_pred_masks
(self, outputs, tfms)
detectron2/detectron2/modeling/test_time_augmentation.py:298
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
detectron2/detectron2/export/shared.py:500
↓ 2 callersMethod_rescale_detected_boxes
(self, augmented_inputs, merged_instances, tfms)
detectron2/detectron2/modeling/test_time_augmentation.py:282
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
detectron2/detectron2/modeling/roi_heads/roi_heads.py:181
↓ 2 callersMethod_shared_roi_transform
(self, features: List[torch.Tensor], boxes: List[Boxes])
detectron2/detectron2/modeling/roi_heads/roi_heads.py:455
↓ 2 callersMethod_subdivision_inference
(self, features, mask_representations, instances)
detectron2/projects/PointRend/point_rend/mask_head.py:302
↓ 2 callersMethod_subsample_labels
Randomly sample a subset of positive and negative examples, and overwrite the label vector to the ignore value (-1) for all elements
detectron2/detectron2/modeling/proposal_generator/rpn.py:287
↓ 2 callersMethod_test_rcnn_model
(self, config_path)
detectron2/tests/test_export_torchscript.py:53
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
detectron2/tests/modeling/test_roi_pooler.py:14
↓ 2 callersMethod_test_scriptability
(self, device)
detectron2/tests/modeling/test_roi_pooler.py:68
↓ 2 callersMethod_test_train
(self, input_sizes, instances)
detectron2/tests/modeling/test_model_e2e.py:85
↓ 2 callersFunction_transform_to_aug
Wrap Transform into Augmentation. Private, used internally to implement augmentations.
detectron2/detectron2/data/transforms/augmentation.py:232
↓ 2 callersMethod_turn_off_roi_heads
Open a context where some heads in `model.roi_heads` are temporarily turned off. Args: attr (list[str]): the attribute in
detectron2/detectron2/modeling/test_time_augmentation.py:137
↓ 2 callersMethod_update_best
(self, val, iteration)
detectron2/detectron2/engine/hooks.py:251
↓ 2 callersFunction_update_i
(op, ssa_i)
detectron2/detectron2/export/shared.py:421
↓ 2 callersFunction_validate_py_syntax
(filename)
detectron2/detectron2/config/lazy.py:74
↓ 2 callersMethod_write_metrics
( self, loss_dict: Mapping[str, torch.Tensor], data_time: float, prefix: str =
detectron2/detectron2/engine/train_loop.py:358
↓ 2 callersFunctionadd_decomposed_rel_pos
Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`. https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e
detectron2/detectron2/modeling/backbone/utils.py:96
↓ 2 callersFunctionadd_deeplab_config
Add config for DeepLab.
detectron2/projects/DeepLab/deeplab/config.py:5
↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
detectron2/projects/DensePose/apply_net.py:146
↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
detectron2/projects/DensePose/query_db.py:140
↓ 2 callersMethodafter_train
Called after the last iteration.
detectron2/detectron2/engine/train_loop.py:62
↓ 2 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and returns a new chkpt_state_dict with names converted to match model_state_dict with heuristics. Th
detectron2/detectron2/checkpoint/c2_model_loading.py:208
↓ 2 callersMethodapply_coords
(self, coords)
detectron2/projects/PointRend/point_rend/color_augmentation.py:43
↓ 2 callersMethodapply_image
(self, img, interp=None)
detectron2/detectron2/data/transforms/transform.py:57
↓ 2 callersMethodapply_image
(self, img, interp=None)
detectron2/detectron2/data/transforms/transform.py:112
↓ 2 callersMethodapply_segmentation
(self, segmentation)
detectron2/detectron2/data/transforms/transform.py:278
↓ 2 callersFunctionapply_sequential
(inputs, modules)
detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead_SharedTraining.py:8
↓ 2 callersMethodarea
(self)
detectron2/detectron2/utils/visualizer.py:143
↓ 2 callersFunctionassert_fx_safe
An FX-tracing safe version of assert. Avoids erroneous type assertion triggering when types are masked inside an fx.proxy.Proxy object during
detectron2/detectron2/utils/tracing.py:45
↓ 2 callersMethodbefore_step
(self)
detectron2/detectron2/engine/hooks.py:76
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
detectron2/detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersFunctionbuild_evaluator
Create evaluator(s) for a given dataset. This uses the special metadata "evaluator_type" associated with each builtin dataset. For your o
detectron2/tools/train_net.py:42
↓ 2 callersMethodbuild_evaluator
( cls, cfg: CfgNode, dataset_name: str, output_folder: Optional[str] = None,
detectron2/projects/DensePose/densepose/engine/trainer.py:150
← previousnext →401–500 of 3,350, ranked by callers