MCPcopy Create free account

hub / github.com/baaivision/Painter / functions

Functions326 in github.com/baaivision/Painter

↓ 1 callersFunctionwindow_partition
Partition into non-overlapping windows with padding if needed. Args: x (tensor): input tokens with [B, H, W, C]. window_size
SegGPT/SegGPT_inference/util/vitdet_utils.py:16
↓ 1 callersFunctionwindow_unpartition
Window unpartition into original sequences and removing padding. Args: x (tensor): input tokens with [B * num_windows, window_size, w
Painter/util/vitdet_utils.py:40
↓ 1 callersFunctionwindow_unpartition
Window unpartition into original sequences and removing padding. Args: x (tensor): input tokens with [B * num_windows, window_size, w
SegGPT/SegGPT_inference/util/vitdet_utils.py:40
Method__call__
(self, input: Any, target: Any, interpolation1: Any, interpolation2: Any)
Painter/data/pairdataset.py:200
Method__call__
(self, img, tgt, interpolation1=None, interpolation2=None)
Painter/data/pair_transforms.py:50
Method__call__
Args: pic (PIL Image or numpy.ndarray): Image to be converted to tensor. Returns: Tensor: Converted image.
Painter/data/pair_transforms.py:72
Method__call__
(self, img, tgt, interpolation1=None, interpolation2=None)
Painter/data/pair_transforms.py:329
Method__call__
Generate the target heatmap.
Painter/data/mmpose_custom/data/pipelines/top_down_transform.py:75
Method__call__
Call function to save images.
Painter/data/mmdet_custom/data/pipelines/transforms.py:93
Method__call__
Generate the target heatmap.
Painter/eval/mmpose_custom/data/pipelines/top_down_transform.py:75
Method__call__
(self, loss, optimizer, clip_grad=None, parameters=None, create_graph=False, update_grad=True)
Painter/util/misc.py:258
Method__call__
(self)
Painter/util/masking_generator.py:65
Method__getattr__
(self, attr)
Painter/util/misc.py:101
Method__getitem__
(self, index: int)
Painter/data/pairdataset.py:106
Method__getitem__
Gets element of the dataset. Args: index: index of the element in the dataset Returns: Single element by index
Painter/data/sampler.py:34
Method__getitem__
(self, index)
Painter/util/ddp_utils.py:29
Method__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. qkv_bias (bool: I
Painter/models_painter.py:36
Method__init__
Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. bottlen
Painter/models_painter.py:98
Method__init__
( self, img_size=224, patch_size=16, in_chans=3,
Painter/models_painter.py:241
Method__init__
(self, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)
Painter/data/pairdataset.py:197
Method__init__
(self)
Painter/data/pair_transforms.py:69
Method__init__
(self, mean, std, inplace=False)
Painter/data/pair_transforms.py:97
Method__init__
( self, size, scale=(0.08, 1.0), ratio=(3.0 / 4.0, 4.0 / 3.0), interpo
Painter/data/pair_transforms.py:135
Method__init__
(self, p=0.5)
Painter/data/pair_transforms.py:174
Method__init__
(self, transforms, p=0.5)
Painter/data/pair_transforms.py:205
Method__init__
(self, brightness=0, contrast=0, saturation=0, hue=0)
Painter/data/pair_transforms.py:238
Method__init__
(self, p=0.5, scale=(0.02, 0.33), ratio=(0.3, 3.3), value=0, inplace=False)
Painter/data/pair_transforms.py:289
Method__init__
(self, sigma=[.1, 2.])
Painter/data/pair_transforms.py:326
Method__init__
Args: sampler: Sampler used for subsampling num_replicas (int, optional): Number of processes participating in
Painter/data/sampler.py:66
Method__init__
(self, backbone, neck=None, keypoint_head=None,
Painter/data/mmpose_custom/model/top_down.py:48
Method__init__
(self, ann_file, img_prefix, data_cfg, pip
Painter/data/mmpose_custom/data/topdown_coco_dataset.py:61
Method__init__
(self, sigma=2, kernel=(11, 11), valid_radius_factor=0.0546
Painter/data/mmpose_custom/data/pipelines/top_down_transform.py:47
Method__init__
(self, annotation_file=None)
Painter/data/mmdet_custom/data/coco_panoptic.py:38
Method__init__
(self, dir_name, target_path='../datasets/coco/pano_ca_inst',
Painter/data/mmdet_custom/data/pipelines/transforms.py:76
Method__init__
(self, backbone, neck=None, keypoint_head=None,
Painter/eval/mmpose_custom/model/top_down.py:48
Method__init__
(self, ann_file, img_prefix, data_cfg, pip
Painter/eval/mmpose_custom/data/topdown_coco_dataset.py:61
Method__init__
(self, sigma=2, kernel=(11, 11), valid_radius_factor=0.0546
Painter/eval/mmpose_custom/data/pipelines/top_down_transform.py:47
Method__init__
Args: dataset_name (str): name of the dataset to be evaluated. distributed (bool): if True, will collect results f
Painter/eval/coco_panoptic/COCOPanoSemSegEvaluatorCustom.py:27
Method__init__
Args: dataset_name: name of the dataset output_dir: output directory to save results for evaluation. eval
Painter/eval/coco_panoptic/COCOInstSegEvaluatorCustom.py:56
Method__init__
Args: dataset_name (str): name of the dataset to be evaluated. distributed (bool): if True, will collect results from
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:82
Method__init__
Args: dataset_name: name of the dataset output_dir: output directory to save results for evaluation. eval
Painter/eval/coco_panoptic/COCOPanoEvaluatorCustom.py:145
Method__init__
Args: dataset_name (str): name of the dataset to be evaluated. distributed (bool): if True, will collect results from
Painter/eval/ade20k_semantic/ADE20kSemSegEvaluatorCustom.py:35
Method__init__
(self, img_src_dir, input_size, ext_list=('*.png', '*.jpg'), )
Painter/util/ddp_utils.py:15
Method__init__
(self, params, lr=0, weight_decay=0, momentum=0.9, trust_coefficient=0.001)
Painter/util/lars.py:18
Method__init__
(self, window_size=20, fmt=None)
Painter/util/misc.py:30
Method__init__
(self, delimiter="\t")
Painter/util/misc.py:88
Method__init__
(self)
Painter/util/misc.py:255
Method__init__
( self, input_size, num_masking_patches, min_num_patches=4, max_num_patches=None, min_
Painter/util/masking_generator.py:16
Method__init__
(self, normalized_shape, eps=1e-6)
Painter/util/vitdet_utils.py:197
Method__init__
(self, max_size=0)
SegGPT/SegGPT_inference/seggpt_engine.py:14
Method__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. qkv_bias (bool: I
SegGPT/SegGPT_inference/models_seggpt.py:27
Method__init__
Args: in_channels (int): Number of input channels. out_channels (int): Number of output channels. bottlen
SegGPT/SegGPT_inference/models_seggpt.py:89
Method__init__
( self, img_size=224, patch_size=16, in_chans=3,
SegGPT/SegGPT_inference/models_seggpt.py:242
Method__init__
(self, normalized_shape, eps=1e-6)
SegGPT/SegGPT_inference/util/vitdet_utils.py:197
Method__iter__
@TODO: Docs. Contribution is welcome.
Painter/data/sampler.py:91
Method__len__
(self)
Painter/data/pairdataset.py:192
Method__len__
Returns: int: length of the dataset
Painter/data/sampler.py:45
Method__len__
(self)
Painter/util/ddp_utils.py:26
Method__repr__
(self)
Painter/data/pair_transforms.py:334
Method__repr__
(self)
Painter/data/mmdet_custom/data/pipelines/transforms.py:174
Method__repr__
(self)
Painter/util/masking_generator.py:32
Method__str__
(self)
Painter/util/misc.py:78
Method__str__
(self)
Painter/util/misc.py:109
Method_eval_predictions
Evaluate predictions. Fill self._results with the metrics of the tasks.
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:153
Method_init_weights
(self, m)
Painter/models_painter.py:342
Method_init_weights
(self, m)
SegGPT/SegGPT_inference/models_seggpt.py:348
Method_load_coco_keypoint_annotation_kernel
load annotation from COCOAPI. Note: bbox:[x1, y1, w, h] Args: img_id: coco image id Returns:
Painter/data/mmpose_custom/data/topdown_coco_dataset.py:79
Method_load_coco_keypoint_annotation_kernel
load annotation from COCOAPI. Note: bbox:[x1, y1, w, h] Args: img_id: coco image id Returns:
Painter/eval/mmpose_custom/data/topdown_coco_dataset.py:79
Method_load_coco_person_detection_results
Load coco person detection results.
Painter/data/mmpose_custom/data/topdown_coco_dataset.py:148
Method_load_coco_person_detection_results
Load coco person detection results.
Painter/eval/mmpose_custom/data/topdown_coco_dataset.py:148
Function_process_panoptic_to_semantic
(input_panoptic, output_semantic, segments, id_map)
Painter/data/prepare_coco_semantic_annos_from_panoptic_annos.py:18
Functionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
Painter/util/lr_sched.py:9
Functionall_reduce_mean
(x)
Painter/util/misc.py:380
Functionauto_load_model
(args, model, model_without_ddp, optimizer, loss_scaler)
Painter/util/misc.py:333
Methodavg
(self)
Painter/util/misc.py:62
Functioncollate_fn
(batch)
Painter/util/ddp_utils.py:39
Functionconvert_arg_line_to_args
(arg_line)
Painter/data/depth/eval_with_pngs.py:28
Functionconvert_arg_line_to_args
(arg_line)
Painter/eval/nyuv2_depth/eval_with_pngs.py:28
MethodcreateIndex
(self, use_ext=False)
Painter/data/mmdet_custom/data/coco_panoptic.py:47
Functioncreate_ds_config
(args)
Painter/util/misc.py:391
Methodforward
(self, x)
Painter/models_painter.py:73
Methodforward
(self, x)
Painter/models_painter.py:144
Methodforward
(self, x)
Painter/models_painter.py:216
Methodforward
(self, imgs, tgts, bool_masked_pos=None, valid=None)
Painter/models_painter.py:464
Methodforward
Args: tensor (Tensor): Tensor image to be normalized. Returns: Tensor: Normalized Tensor image.
Painter/data/pair_transforms.py:100
Methodforward
Args: img (PIL Image or Tensor): Image to be cropped and resized. Returns: PIL Image or Tensor: Randomly crop
Painter/data/pair_transforms.py:144
Methodforward
Args: img (PIL Image or Tensor): Image to be flipped. Returns: PIL Image or Tensor: Randomly flipped image.
Painter/data/pair_transforms.py:177
Methodforward
(self, img, tgt, interpolation1=None, interpolation2=None)
Painter/data/pair_transforms.py:208
Methodforward
Args: img (PIL Image or Tensor): Input image. Returns: PIL Image or Tensor: Color jittered image.
Painter/data/pair_transforms.py:241
Methodforward
Args: img (Tensor): Tensor image to be erased. Returns: img (Tensor): Erased Tensor image.
Painter/data/pair_transforms.py:292
Methodforward
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs. W
Painter/data/mmpose_custom/model/top_down.py:66
Methodforward
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs. W
Painter/eval/mmpose_custom/model/top_down.py:66
Methodforward
(self, x)
Painter/util/vitdet_utils.py:182
Methodforward
(self, x)
Painter/util/vitdet_utils.py:204
Methodforward
(self, x)
SegGPT/SegGPT_inference/models_seggpt.py:64
Methodforward
(self, x)
SegGPT/SegGPT_inference/models_seggpt.py:135
Methodforward
(self, x, merge=0)
SegGPT/SegGPT_inference/models_seggpt.py:207
Methodforward
(self, imgs, tgts, bool_masked_pos=None, valid=None, seg_type=None, merge_between_batch=-1)
SegGPT/SegGPT_inference/models_seggpt.py:471
Methodforward
(self, x)
SegGPT/SegGPT_inference/util/vitdet_utils.py:182
Methodforward
(self, x)
SegGPT/SegGPT_inference/util/vitdet_utils.py:204
← previousnext →201–300 of 326, ranked by callers