MCPcopy Create free account

hub / github.com/ai4ce/NYU-VPR / functions

Functions2,323 in github.com/ai4ce/NYU-VPR

↓ 6 callersFunctionbwd_update
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:1487
↓ 6 callersFunctioncv2_imread_rgb
Args: - string
segmentation/mseg-api/mseg/utils/cv2_utils.py:26
↓ 6 callersMethodfoo
(d)
segmentation/apex/apex/pyprof/prof/pointwise.py:26
↓ 6 callersFunctionform_label_mapping_array_pytorch
Args: - label_mapping_dict: dictionary from int to int, from original class ID to a new class ID. This is NOT the id_to_class_name dictionary
segmentation/mseg-api/mseg/utils/mask_utils.py:294
↓ 6 callersMethodfull
test/DBow3/tests/nanoflann.hpp:104
↓ 6 callersMethodgen_grad
(self, ref_param, tst_param)
segmentation/apex/tests/L0/run_optimizers/test_fused_optimizer.py:31
↓ 6 callersFunctiongrayscale_to_color
Duplicate the grayscale channel 3 times. Args: - gray_img: Array with shape (M,N) Returns: - rgb_img: Array with shape (M,N,3)
segmentation/mseg-api/mseg/utils/cv2_utils.py:38
↓ 6 callersFunctionis_nested
(x)
segmentation/apex/apex/amp/utils.py:23
↓ 6 callersMethodisscalar
(t)
segmentation/apex/apex/pyprof/prof/utility.py:59
↓ 6 callersFunctionmaster_params
Generator expression that iterates over the params owned by ``optimizer``. Args: optimizer: An optimizer previously returned from ``
segmentation/apex/apex/amp/_amp_state.py:59
↓ 6 callersFunctionread_json_file
Args: - fpath: string, representing file path
segmentation/mseg-api/mseg/utils/json_utils.py:8
↓ 6 callersFunctionreduce_tensor
(tensor)
segmentation/apex/tests/L1/common/main_amp.py:519
↓ 6 callersFunctionreduce_tensor
(tensor)
segmentation/apex/examples/imagenet/main_amp.py:535
↓ 6 callersFunctionsave_binary_mask_double
Currently blended mask img background is lime green. Args: - rgb_img: - label_img: - save_fpath - save_to_disk Returns: - Array, r
segmentation/mseg-api/mseg/utils/mask_utils.py:459
↓ 6 callersFunctionscaled_write_to_gmem
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:259
↓ 6 callersFunctionsend_list_to_workers
Given a list of work, and a desired number of n workers, launch n worker processes that will each process 1/nth of the total work. Args: - num
segmentation/mseg-api/mseg/utils/multiprocessing_utils.py:11
↓ 6 callersMethodtrain_eval_train_test
(self, module, t)
segmentation/apex/tests/L0/run_amp/test_cache.py:70
↓ 6 callersMethodunscale
(self, model_grads, master_grads, unused_scale, models_are_masters=False, scale_override=None)
segmentation/apex/apex/amp/scaler.py:94
↓ 6 callersFunctionvis_mask
Visualizes a single binary mask by coloring the region inside a binary mask as a specific color, and then blending it with an RGB image. Args:
segmentation/mseg-api/mseg/utils/mask_utils.py:857
↓ 5 callersMethodbackward
(ctx, grad)
segmentation/apex/apex/pyprof/examples/custom_func_module/custom_function.py:16
↓ 5 callersFunctioncompare
(desc, inp1, inp2, error= 1e-5)
segmentation/apex/tests/distributed/synced_batchnorm/two_gpu_test_different_batch_size.py:12
↓ 5 callersFunctionconv3x3
3x3 convolution with padding
segmentation/mseg-semantic/mseg_semantic/model/resnet.py:23
↓ 5 callersFunctiondict_is_equal
segmentation/mseg-api/mseg/utils/test_utils.py:4
↓ 5 callersMethodelems
(self)
segmentation/apex/apex/pyprof/prof/pointwise.py:97
↓ 5 callersFunctionform_contained_classes_color_guide
Write out an image explaining the classes inside an image. Args: - label_img - id_to_class_name_map - fname_stem, save_dir Returns: -
segmentation/mseg-api/mseg/utils/mask_utils.py:728
↓ 5 callersFunctionform_mask_triple
Args: - rgb_img: - label_img: - save_fpath - save_to_disk Returns: - Array, representing 3 horizontally concatenated images: from le
segmentation/mseg-api/mseg/utils/mask_utils.py:777
↓ 5 callersFunctionform_mask_triple_embedded_classnames
Args: - rgb_img: - label_img: - id_to_class_name_map - save_fpath - save_to_disk Returns: - Array, representing 3 horizontally con
segmentation/mseg-api/mseg/utils/mask_utils.py:195
↓ 5 callersMethodget_img_annotation
Args: - split: string representing training, validation, or testing split of the data - fname_stem: Returns: - img_annot: Python dic
segmentation/mseg-api/mseg/dataset_apis/COCOSemanticAPI.py:53
↓ 5 callersMethodget_module_and_name
recursively fetches (possible) child module and name of weight to be reparameterized
segmentation/apex/apex/reparameterization/reparameterization.py:105
↓ 5 callersMethodget_momentums
(self, params)
segmentation/apex/apex/optimizers/fused_sgd.py:121
↓ 5 callersFunctionget_np_mode
Args: - x: Numpy array of integers: Returns: - mode of array values (integer)
segmentation/mseg-api/mseg/utils/mask_utils.py:994
↓ 5 callersFunctionget_px_accuracy
Quick and dirty method for analysis, not an officially correct implementation
segmentation/mseg-semantic/mseg_semantic/tool/relabeled_eval_utils.py:117
↓ 5 callersMethodinit_hidden
init_hidden()
segmentation/apex/apex/RNN/RNNBackend.py:309
↓ 5 callersMethodinit_model_for_pruning
Call this method to modify your model to take advantage of sparse matrix multiplication. Note that this call alone only augments the model wit
segmentation/apex/apex/contrib/sparsity/asp.py:29
↓ 5 callersMethodinit_optimizer_for_pruning
Call this method to monkey patch optimizer step function so that masks can be applied to gradients and weights during training. You mu
segmentation/apex/apex/contrib/sparsity/asp.py:127
↓ 5 callersFunctioninput_transform
()
test/netvlad/pittsburgh.py:23
↓ 5 callersFunctionlog2_ceil_native
segmentation/apex/apex/contrib/csrc/multihead_attn/softmax.h:952
↓ 5 callersFunctionmap_semantic_img_fast
Args: - semantic_img: - label_mapping_arr: Returns: - img:
segmentation/mseg-api/mseg/utils/mask_utils.py:312
↓ 5 callersFunctionmap_semantic_img_slow
Convert grayscale image to a different grayscale image. Assumption is that there are less than 65,000 classes in the final mapped class for np.uin
segmentation/mseg-api/tests/test_mask_utils.py:114
↓ 5 callersFunctionparse_entry
Parse a spreadsheet entry from dataset's column, return list of classes in this spreadsheet cell. TODO: handle case for last column in spreadsheet,
segmentation/mseg-api/mseg/taxonomy/taxonomy_converter.py:336
↓ 5 callersFunctionread_str_list
Args: - Returns: -
segmentation/mseg-api/mseg/utils/names_utils.py:13
↓ 5 callersMethodsave
test/DBow3/src/Database.cpp:800
↓ 5 callersFunctiontoRNNBackend
:class:`toRNNBackend`
segmentation/apex/apex/RNN/models.py:8
↓ 5 callersMethodtransform_label
Function to be called externally for training. Perform fast grayscale->grayscale mapping for training data transformation. Args: - label: P
segmentation/mseg-api/mseg/taxonomy/taxonomy_converter.py:250
↓ 5 callersFunctionwrapper
(*args, **kwargs)
segmentation/apex/apex/amp/amp.py:19
↓ 4 callersFunctionMaxSharedMemoryPerMultiprocessor
segmentation/apex/apex/contrib/csrc/groupbn/cuda_utils.h:10
↓ 4 callersMethod_cur_loss_scaler
(self)
segmentation/apex/apex/amp/opt.py:55
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
segmentation/apex/apex/pyprof/examples/user_annotation/resnet.py:134
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
segmentation/mseg-semantic/mseg_semantic/model/resnet.py:135
↓ 4 callersMethodaccum_dist
test/DBow3/tests/nanoflann.hpp:294
↓ 4 callersMethodaddWeight
test/DBow3/src/BowVector.cpp:34
↓ 4 callersFunctionadd_text_cv2
font_color = (0,0,0) x: x-coordinate from image origin to plot text at y: y-coordinate from image origin to plot text at
segmentation/mseg-api/mseg/utils/cv2_utils.py:146
↓ 4 callersFunctioncheck_args
segmentation/apex/csrc/layer_norm_cuda.cpp:43
↓ 4 callersMethodclear
test/DBow3/src/Database.cpp:194
↓ 4 callersMethodclear_overflow_state
(self)
segmentation/apex/apex/amp/scaler.py:191
↓ 4 callersMethodconv_bytes_flops
(self, N, C, H, W, K, P, Q, R, S, g, t)
segmentation/apex/apex/pyprof/prof/conv.py:184
↓ 4 callersFunctioncreate_test_loader
Create a Pytorch dataloader from a dataroot and list of relative paths. Args: Returns: - test_loader - data_list: list of 2-tuples (re
segmentation/mseg-semantic/mseg_semantic/tool/mseg_dataloaders.py:9
↓ 4 callersFunctioncuWelfordOnlineSum
segmentation/apex/apex/contrib/csrc/multihead_attn/layer_norm.h:7
↓ 4 callersFunctioneval_rel_model_pred_on_unrel_data
Rather than eval unrelabeled model on the univ. relabeled data, we instead map correctness of relabeled model on relabeled univ. data
segmentation/mseg-semantic/mseg_semantic/tool/relabeled_eval_utils.py:42
↓ 4 callersFunctionexclusion
take in array of IoU/Acc., return non-excluded IoU/acc values
segmentation/mseg-semantic/mseg_semantic/utils/avg_meter.py:111
↓ 4 callersMethodexecute_on_img
Rather than feeding in crops w/ sliding window across the full-res image, we downsample/upsample the image to a default inference size. This may
segmentation/mseg-semantic/mseg_semantic/tool/inference_task.py:450
↓ 4 callersFunctionflat_dist_call
(tensors, call, extra_args=None)
segmentation/apex/apex/parallel/distributed.py:70
↓ 4 callersFunctionfrom_float
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:57
↓ 4 callersMethodgetPointer
segmentation/apex/apex/contrib/csrc/multihead_attn/layer_norm.h:258
↓ 4 callersMethodget_img_pair
segmentation/mseg-api/mseg/dataset_apis/SunrgbdImageLevelDataset.py:75
↓ 4 callersMethodget_img_pair
Load 2-tuple of image data from disk (RGB and label). Args: - fname_stem: string representing Returns: - rgb_img - label_img
segmentation/mseg-api/mseg/dataset_apis/Ade20kMaskLevelDataset.py:134
↓ 4 callersMethodget_instance_id_img
Encoding described here: https://github.com/cocodataset/panopticapi/blob/master/panopticapi/utils.py#L30 "Given semantic category uniq
segmentation/mseg-api/mseg/dataset_apis/COCOInstanceAPI.py:67
↓ 4 callersFunctionget_instance_mask_class_votes
Since the class masks to instance masks don't match up exactly, and are provided in images with very different resolutions, we have to take the m
segmentation/mseg-api/mseg/utils/mask_utils.py:960
↓ 4 callersMethodget_metrics
Args: - None Returns: - iou_class: Array - accuracy_class: Array - m
segmentation/mseg-semantic/mseg_semantic/utils/avg_meter.py:84
↓ 4 callersFunctionhash_func
test/DBow3/src/quicklz.c:90
↓ 4 callersFunctionhashat
test/DBow3/src/quicklz.c:123
↓ 4 callersFunctionhighlight_binary_mask
Given a grayscale image where intensities denote instance IDs (same intensity denotes belonging to same instance), convert this to an RGB image whe
segmentation/mseg-api/mseg/utils/mask_utils.py:483
↓ 4 callersFunctioninter_block_sync
It is expected that all threads in the CTA enter this function!
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:668
↓ 4 callersFunctionintersectionAndUnion
Compute IoU on Numpy arrays on CPU. We will be reasoning about each matrix cell individually, so we can reshape (flatten) these arrays in
segmentation/mseg-semantic/mseg_semantic/utils/iou.py:13
↓ 4 callersMethodkdtree_get_point_count
Must return the number of data points
test/DBow3/tests/nanoflann.hpp:1358
↓ 4 callersFunctionload_dataset_colors_arr
Args: - dataset_name: str Returns: - Numpy array of shape (N,3) with RGB tuple corresponding to each class.
segmentation/mseg-api/mseg/utils/names_utils.py:48
↓ 4 callersFunctionmap_semantic_img_fast_pytorch
TODO: may need to make a copy here, if it won't make one for us. Args: - semantic_img: Pytorch CPU long tensor representing (M,N) matrix,
segmentation/mseg-api/mseg/utils/mask_utils.py:274
↓ 4 callersMethodnext
(self)
segmentation/apex/tests/L1/common/main_amp.py:292
↓ 4 callersMethodnext
(self)
segmentation/apex/examples/imagenet/main_amp.py:307
↓ 4 callersFunctionparse_uentry
Cannot be a blank string. Args: - uentry: string, representing TSV entry from `Universal` taxonomy column Returns: - full_name: exact dupli
segmentation/mseg-api/mseg/taxonomy/taxonomy_converter.py:307
↓ 4 callersFunctionpopulate_linear_mapping
Use 1x1 convolution to create linear mapping P of each pixel's probabilities to a new space. The matrix weights Pij are binary 0/1 values and ar
segmentation/mseg-api/mseg/taxonomy/taxonomy_converter.py:360
↓ 4 callersFunctionread_txt_file
Args: - txt_fpath: string representing path to txt file Returns: - txt_lines: list of strings, one per line of file
segmentation/mseg-api/mseg/utils/txt_utils.py:9
↓ 4 callersFunctionrelu_activation
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:359
↓ 4 callersFunctionrelu_bwd
segmentation/apex/apex/contrib/csrc/groupbn/nhwc_batch_norm_kernel.h:1422
↓ 4 callersMethodreset_parameters
reset_parameters()
segmentation/apex/apex/RNN/RNNBackend.py:291
↓ 4 callersFunctionresize_by_scaled_short_side
Args: - image: Numpy array of shape () - scale: Returns: - image_scaled:
segmentation/mseg-semantic/mseg_semantic/tool/inference_task.py:100
↓ 4 callersFunctionsave_pred_vs_label_7tuple
7-tuple consists of (1-3) rgb mask 3-sequence for label, (4-6) rgb mask 3-sequence for predictions, (7) color palette Args: - img_rg
segmentation/mseg-api/mseg/utils/mask_utils.py:520
↓ 4 callersFunctionsize
* Returns the number of entries in the database * @return number of entries in the database */
test/DBow3/src/Database.h:159
↓ 4 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
segmentation/apex/apex/contrib/optimizers/fused_sgd.py:115
↓ 4 callersFunctionswap_px_inside_mask
Args: - label_img: label map before any update has taken place. - segment_mask: 0/1 binary image showing segment pixels - old_val: old pixel
segmentation/mseg-api/mseg/utils/mask_utils.py:897
↓ 4 callersFunctiontrain_loop
(args, model, optimizer, step, num_steps)
segmentation/apex/apex/contrib/sparsity/test/toy_problem.py:31
↓ 4 callersMethodtransform
test/DBow3/tests/test_fbow.cpp:222
↓ 4 callersFunctiontype_string
(x)
segmentation/apex/apex/amp/utils.py:51
↓ 4 callersFunctionunflatten
(coalesced, bucket)
segmentation/apex/apex/parallel/distributed.py:30
↓ 4 callersFunctionwrite_csv
Args: - Returns: -
segmentation/mseg-api/mseg/utils/csv_utils.py:27
↓ 4 callersMethodzero_grad
(self)
segmentation/apex/apex/contrib/optimizers/fused_lamb.py:87
↓ 3 callersMethod__init__
(self, base_model, fixed_weight=False, dropout_rate=0.0, bayesian = False)
test/posenet/model.py:74
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
segmentation/mseg-semantic/mseg_semantic/model/seg_hrnet.py:47
↓ 3 callersMethod__len__
(self)
test/posenet/data_loader.py:73
↓ 3 callersMethod_change_color_brightness
Depending on the brightness_factor, gives a lighter or darker color i.e. a color with less or more saturation than the original color
segmentation/mseg-api/mseg/utils/mask_utils_detectron2.py:712
← previousnext →101–200 of 2,323, ranked by callers