MCPcopy Create free account

hub / github.com/Gsunshine/Enjoy-Hamburger / functions

Functions1,928 in github.com/Gsunshine/Enjoy-Hamburger

↓ 2 callersMethodextract_feat
Extract features from images.
seg_light_ham/mmseg/models/segmentors/encoder_decoder.py:63
↓ 2 callersMethodextract_feat
Extract features from images.
seg_mm/mmseg/models/segmentors/encoder_decoder.py:63
↓ 2 callersFunctionfast_hist
(label_true, label_pred)
seg/HamNet/metric.py:7
↓ 2 callersFunctionfeed
(x, target, training=False)
gan/HamGAN/generate_images.py:28
↓ 2 callersFunctionfetch
(image_path, label_path=None)
seg/HamNet/dataset.py:15
↓ 2 callersFunctionflatten_binary_logits
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore_index'.
seg_light_ham/mmseg/models/losses/lovasz_loss.py:30
↓ 2 callersFunctionflatten_binary_logits
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore_index'.
seg_mm/mmseg/models/losses/lovasz_loss.py:30
↓ 2 callersFunctionflatten_probs
Flattens predictions in the batch.
seg_light_ham/mmseg/models/losses/lovasz_loss.py:43
↓ 2 callersFunctionflatten_probs
Flattens predictions in the batch.
seg_mm/mmseg/models/losses/lovasz_loss.py:43
↓ 2 callersMethodformat_results
Format the results into dir (standard format for ade20k evaluation). Args: results (list): Testing results of the dataset.
seg_light_ham/mmseg/datasets/ade.py:135
↓ 2 callersMethodformat_results
Format the results into dir (standard format for ade20k evaluation). Args: results (list): Testing results of the dataset.
seg_mm/mmseg/datasets/ade.py:135
↓ 2 callersMethodforward
Placeholder of forward function.
seg_light_ham/mmseg/models/decode_heads/decode_head.py:183
↓ 2 callersMethodforward
(self, fine_grained_point_feats, coarse_point_feats)
seg_light_ham/mmseg/models/decode_heads/point_head.py:123
↓ 2 callersMethodforward
Forward function.
seg_light_ham/mmseg/models/decode_heads/enc_head.py:130
↓ 2 callersMethodforward
Placeholder of forward function.
seg_light_ham/mmseg/models/decode_heads/cascade_decode_head.py:15
↓ 2 callersMethodforward
Placeholder of forward function.
seg_mm/mmseg/models/decode_heads/decode_head.py:183
↓ 2 callersMethodforward
(self, fine_grained_point_feats, coarse_point_feats)
seg_mm/mmseg/models/decode_heads/point_head.py:123
↓ 2 callersMethodforward
Forward function.
seg_mm/mmseg/models/decode_heads/enc_head.py:130
↓ 2 callersMethodforward
Placeholder of forward function.
seg_mm/mmseg/models/decode_heads/cascade_decode_head.py:15
↓ 2 callersFunctiongenerate_aug_list
(merged_list, excluded_list)
seg_light_ham/tools/convert_datasets/voc_aug.py:21
↓ 2 callersFunctiongenerate_aug_list
(merged_list, excluded_list)
seg_mm/tools/convert_datasets/voc_aug.py:21
↓ 2 callersMethodget_crop_bbox
Randomly get a crop bounding box.
seg_light_ham/mmseg/datasets/pipelines/transforms.py:575
↓ 2 callersMethodget_crop_bbox
Randomly get a crop bounding box.
seg_mm/mmseg/datasets/pipelines/transforms.py:575
↓ 2 callersMethodget_dataset_idx_and_sample_idx
Return dataset and sample index when given an indice of ConcatDataset. Args: indice (int): indice of sample in ConcatData
seg_light_ham/mmseg/datasets/dataset_wrappers.py:106
↓ 2 callersMethodget_dataset_idx_and_sample_idx
Return dataset and sample index when given an indice of ConcatDataset. Args: indice (int): indice of sample in ConcatData
seg_mm/mmseg/datasets/dataset_wrappers.py:106
↓ 2 callersMethodget_gt_seg_maps
Get ground truth segmentation maps for evaluation.
seg_light_ham/mmseg/datasets/custom.py:250
↓ 2 callersMethodget_gt_seg_maps
Get ground truth segmentation maps for evaluation.
seg_mm/mmseg/datasets/custom.py:250
↓ 2 callersFunctionget_ham
(key)
gan/HamGAN/ham.py:72
↓ 2 callersMethodget_mask
(self, nI, nO, **kwargs)
gan/HamGAN/masks.py:81
↓ 2 callersMethodget_pad_shape
(self, input_shape)
seg_light_ham/mmseg/models/utils/embed.py:58
↓ 2 callersMethodget_pad_shape
(self, input_shape)
seg_mm/mmseg/models/utils/embed.py:58
↓ 2 callersFunctionget_saliency
(attn_map, shape=(128, 128), method='nearest')
gan/HamGAN/inverse_image.py:57
↓ 2 callersFunctionhandy_var
(a, unbias=True)
seg/HamNet/sync_bn/nn/modules/tests/test_numeric_batchnorm.py:18
↓ 2 callersMethodinf_batch
(self, image)
seg/HamNet/test.py:111
↓ 2 callersFunctioninference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
seg_light_ham/mmseg/apis/inference.py:70
↓ 2 callersFunctioninference_segmentor
Inference image(s) with the segmentor. Args: model (nn.Module): The loaded segmentor. imgs (str/ndarray or list[str/ndarray]): Ei
seg_mm/mmseg/apis/inference.py:70
↓ 2 callersFunctioninit_random_seed
Initialize random seed. If the seed is not set, the seed will be automatically randomized, and then broadcast to all processes to prevent som
seg_light_ham/mmseg/apis/train.py:19
↓ 2 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
seg_light_ham/mmseg/core/evaluation/metrics.py:26
↓ 2 callersFunctionintersect_and_union
Calculate intersection and Union. Args: pred_label (ndarray | str): Prediction segmentation map or predict result filename.
seg_mm/mmseg/core/evaluation/metrics.py:26
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors. See Alg. 1 in paper.
seg_light_ham/mmseg/models/losses/lovasz_loss.py:15
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors. See Alg. 1 in paper.
seg_mm/mmseg/models/losses/lovasz_loss.py:15
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [P], logits at each prediction (between -infty and +infty). la
seg_light_ham/mmseg/models/losses/lovasz_loss.py:60
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss. Args: logits (torch.Tensor): [P], logits at each prediction (between -infty and +infty). la
seg_mm/mmseg/models/losses/lovasz_loss.py:60
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [P, C], class probabilities at each prediction (between 0 and 1)
seg_light_ham/mmseg/models/losses/lovasz_loss.py:129
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss. Args: probs (torch.Tensor): [P, C], class probabilities at each prediction (between 0 and 1)
seg_mm/mmseg/models/losses/lovasz_loss.py:129
↓ 2 callersFunctionmulti_gpu_test
Test model with multiple gpus by progressive mode. This method tests model with multiple gpus and collects the results under two different mo
seg_mm/mmseg/apis/test.py:140
↓ 2 callersMethodnorm1
(self)
seg_light_ham/mmseg/models/backbones/vit.py:86
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
seg_light_ham/mmseg/models/backbones/resnet.py:253
↓ 2 callersMethodnorm1
(self)
seg_mm/mmseg/models/backbones/vit.py:86
↓ 2 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
seg_mm/mmseg/models/backbones/resnet.py:253
↓ 2 callersMethodnorm2
(self)
seg_light_ham/mmseg/models/backbones/vit.py:90
↓ 2 callersMethodnorm2
(self)
seg_mm/mmseg/models/backbones/vit.py:90
↓ 2 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
seg_light_ham/mmseg/models/backbones/resnet.py:263
↓ 2 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
seg_mm/mmseg/models/backbones/resnet.py:263
↓ 2 callersFunctionnp2tmp
Save ndarray to local numpy file. Args: array (ndarray): Ndarray to save. temp_file_name (str): Numpy file name. If 'temp_file_na
seg_light_ham/mmseg/apis/test.py:14
↓ 2 callersFunctionnp2tmp
Save ndarray to local numpy file. Args: array (ndarray): Ndarray to save. temp_file_name (str): Numpy file name. If 'temp_file_na
seg_mm/mmseg/apis/test.py:14
↓ 2 callersMethodonline_update
(self, bases)
seg/HamNet/hamburger/burger.py:65
↓ 2 callersFunctionpad_inf
(image, label=None)
seg/HamNet/test.py:43
↓ 2 callersFunctionparse_require_file
(fpath)
seg_mm/setup.py:76
↓ 2 callersFunctionpin_memory_batch
(batch)
seg/HamNet/sync_bn/utils/data/dataloader.py:142
↓ 2 callersMethodpre_eval
Collect eval result from each iteration. Args: preds (list[torch.Tensor] | torch.Tensor): the segmentation logit
seg_light_ham/mmseg/datasets/custom.py:265
↓ 2 callersMethodpre_eval
Collect eval result from each iteration. Args: preds (list[torch.Tensor] | torch.Tensor): the segmentation logit
seg_mm/mmseg/datasets/custom.py:265
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
seg_light_ham/align_resize.py:61
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
seg_light_ham/mmseg/datasets/pipelines/transforms.py:149
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
seg_mm/mmseg/datasets/pipelines/transforms.py:149
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
seg_light_ham/align_resize.py:88
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
seg_light_ham/mmseg/datasets/pipelines/transforms.py:176
↓ 2 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
seg_mm/mmseg/datasets/pipelines/transforms.py:176
↓ 2 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): Position emb
seg_light_ham/mmseg/models/backbones/vit.py:344
↓ 2 callersMethodresize_pos_embed
Resize pos_embed weights. Resize pos_embed using bicubic interpolate method. Args: pos_embed (torch.Tensor): Position emb
seg_mm/mmseg/models/backbones/vit.py:344
↓ 2 callersFunctionsave_img_cv2
(img, name)
gan/HamGAN/inverse_image.py:30
↓ 2 callersFunctionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
seg_light_ham/mmseg/apis/train.py:50
↓ 2 callersFunctionsetup_multi_processes
Setup multi-processing environment variables.
seg_mm/mmseg/utils/set_env.py:11
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
seg_light_ham/mmseg/models/segmentors/base.py:212
↓ 2 callersMethodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor): The semantic segment
seg_mm/mmseg/models/segmentors/base.py:212
↓ 2 callersFunctionshow_result_pyplot
(img: Union[str, np.ndarray], result: np.ndarray, palette: Optio
seg_light_ham/tools/onnx2tensorrt.py:76
↓ 2 callersFunctionshow_result_pyplot
Visualize the segmentation results on the image. Args: model (nn.Module): The loaded segmentor. img (str or np.ndarray): Image fi
seg_light_ham/mmseg/apis/inference.py:102
↓ 2 callersFunctionshow_result_pyplot
(img: Union[str, np.ndarray], result: np.ndarray, palette: Optio
seg_mm/tools/onnx2tensorrt.py:76
↓ 2 callersFunctionshow_result_pyplot
Visualize the segmentation results on the image. Args: model (nn.Module): The loaded segmentor. img (str or np.ndarray): Image fi
seg_mm/mmseg/apis/inference.py:102
↓ 2 callersFunctiontotal_area_to_metrics
Calculate evaluation metrics Args: total_area_intersect (ndarray): The intersection of prediction and ground truth histogram o
seg_light_ham/mmseg/core/evaluation/metrics.py:333
↓ 2 callersFunctiontotal_area_to_metrics
Calculate evaluation metrics Args: total_area_intersect (ndarray): The intersection of prediction and ground truth histogram o
seg_mm/mmseg/core/evaluation/metrics.py:333
↓ 2 callersFunctiontrain_segmentor
Launch segmentor training.
seg_light_ham/mmseg/apis/train.py:69
↓ 2 callersFunctiontrans_scale
(image, h, w)
seg/HamNet/test.py:119
↓ 2 callersFunctionusample
Upsamples the input volume. Args: x: The 4D input tensor. Returns: An upsampled version of the input tensor.
gan/HamGAN/generator.py:43
↓ 2 callersMethodval
(self, prefix='', logging=False, steps=None)
seg/HamNet/train.py:188
↓ 2 callersMethodwindow_partition
Args: x: (B, H, W, C) Returns: windows: (num_windows*B, window_size, window_size, C)
seg_light_ham/mmseg/models/backbones/swin.py:272
↓ 2 callersMethodwindow_partition
Args: x: (B, H, W, C) Returns: windows: (num_windows*B, window_size, window_size, C)
seg_mm/mmseg/models/backbones/swin.py:272
↓ 1 callersMethod__data_parallel_replicate__
(self, ctx, copy_id)
seg/HamNet/sync_bn/nn/modules/batchnorm.py:87
↓ 1 callersMethod__init__
(self, trt_file: str, cfg: Any, device_id: int)
seg_light_ham/tools/deploy_test.py:103
↓ 1 callersMethod__init__
(self, *args, by_epoch=False, efficient_test=False,
seg_light_ham/mmseg/core/evaluation/eval_hooks.py:28
↓ 1 callersMethod__init__
(self, split, **kwargs)
seg_light_ham/mmseg/datasets/pascal_context.py:48
↓ 1 callersMethod__init__
(self, in_channels, out_channels, norm_layer=dict(type='LN'
seg_light_ham/mmseg/models/necks/mla_neck.py:80
↓ 1 callersMethod__init__
(self, in_channels=(64, 256, 256), out_channels=128, conv_c
seg_light_ham/mmseg/models/necks/ic_neck.py:102
↓ 1 callersMethod__init__
(self, img_size=224, patch_size=16, in_channels=3,
seg_light_ham/mmseg/models/backbones/vit.py:150
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
seg_light_ham/mmseg/models/backbones/resnext.py:139
↓ 1 callersMethod__init__
(self, extra, in_channels=3, conv_cfg=None,
seg_light_ham/mmseg/models/backbones/hrnet.py:299
↓ 1 callersMethod__init__
(self, in_channels, out_channels, stride,
seg_light_ham/mmseg/models/utils/inverted_residual.py:32
↓ 1 callersMethod__init__
(self, c1_in_channels, c1_channels, **kwargs)
seg_light_ham/mmseg/models/decode_heads/sep_aspp_head.py:43
↓ 1 callersMethod__init__
(self, isa_channels, down_factor=(8, 8), **kwargs)
seg_light_ham/mmseg/models/decode_heads/isa_head.py:69
↓ 1 callersMethod__init__
(self, dilations=(1, 6, 12, 18), **kwargs)
seg_light_ham/mmseg/models/decode_heads/aspp_head.py:65
← previousnext →201–300 of 1,928, ranked by callers