MCPcopy Create free account

hub / github.com/baaivision/Painter / functions

Functions326 in github.com/baaivision/Painter

↓ 196 callersFunctionprint
(*args, **kwargs)
Painter/util/misc.py:177
↓ 119 callersMethodappend
(self, x)
SegGPT/SegGPT_inference/seggpt_engine.py:18
↓ 18 callersMethodload_state_dict
(self, state_dict)
Painter/util/misc.py:277
↓ 15 callersMethodunpatchify
x: (N, L, patch_size**2 *3) imgs: (N, 3, H, W)
Painter/models_painter.py:370
↓ 14 callersMethodupdate
(self, **kwargs)
Painter/util/misc.py:92
↓ 12 callersMethodmax
(self)
Painter/util/misc.py:71
↓ 9 callersFunctionbuild_dataset
(is_train, args)
Painter/util/datasets.py:20
↓ 9 callersMethodevaluate
Evaluate coco keypoint results. The pose prediction results will be saved in ``${res_folder}/result_keypoints.json``. Note:
Painter/eval/mmpose_custom/data/topdown_coco_dataset.py:194
↓ 8 callersFunctionresizeImg
(img)
SegGPT/app_gradio.py:82
↓ 7 callersMethod__init__
(self, transforms)
Painter/data/pair_transforms.py:47
↓ 5 callersMethodstate_dict
(self)
Painter/util/misc.py:274
↓ 4 callersMethod_load_image
(self, path: str)
Painter/data/pairdataset.py:81
↓ 4 callersFunctiondefine_colors_by_mean_sep
(num_colors=133, channelsep=7)
Painter/data/coco_semseg/gen_color_coco_panoptic_segm.py:31
↓ 3 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
Painter/models_painter.py:156
↓ 3 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
SegGPT/SegGPT_inference/models_seggpt.py:147
↓ 3 callersFunctiondefine_colors_per_location_mean_sep
()
Painter/data/ade20k/gen_color_ade20k_sem.py:85
↓ 3 callersFunctiondefine_colors_per_location_r_gb
(num_location_r=16, num_location_gb=20)
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:42
↓ 3 callersMethodget_params
(img, scale, ratio)
Painter/util/crop.py:23
↓ 3 callersFunctionget_world_size
()
Painter/util/misc.py:196
↓ 3 callersFunctionis_dist_avail_and_initialized
()
Painter/util/misc.py:188
↓ 3 callersMethodpost_process_segm_output
Post-processing to turn output segm image to class index map Args: segm: (H, W, 3) Returns:
Painter/eval/coco_panoptic/COCOPanoSemSegEvaluatorCustom.py:108
↓ 3 callersMethodpost_process_segm_output_by_threshold
Post-processing to turn output segm image to class index map Args: pred_path: path to a (H, W, 3) image dis
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:252
↓ 2 callersMethod_combine_images
(self, image, image2, interpolation='bicubic')
Painter/data/pairdataset.py:100
↓ 2 callersFunctioncheck_input
(target_weight, target, metas)
Painter/data/mmpose_custom/data/pipelines/custom_transform.py:55
↓ 2 callersFunctioncheck_input
(target_weight, target, metas)
Painter/eval/mmpose_custom/data/pipelines/custom_transform.py:55
↓ 2 callersMethoddecode_images_to_heatmaps_minmax
Args: images: (bs, 256, 192, 3) resize: whether to resize to (64, 48) Returns: heatmaps: (bs, 1
Painter/data/mmpose_custom/model/top_down.py:219
↓ 2 callersMethoddecode_images_to_heatmaps_minmax
Args: images: (bs, 256, 192, 3) resize: whether to resize to (64, 48) Returns: heatmaps: (bs, 1
Painter/eval/mmpose_custom/model/top_down.py:219
↓ 2 callersFunctiondefine_colors_gb_mean_sep
(num_locations=17)
Painter/data/mmpose_custom/data/pipelines/custom_transform.py:10
↓ 2 callersFunctiondefine_colors_gb_mean_sep
(num_locations=17)
Painter/eval/mmpose_custom/data/pipelines/custom_transform.py:10
↓ 2 callersFunctionencode_rgb_target_to_image
Args: target: ndarray (17, 256, 192) target_weight: ndarray (17, 1) metas: dict Returns: an RGB image, R en
Painter/data/mmpose_custom/data/pipelines/custom_transform.py:64
↓ 2 callersFunctionencode_rgb_target_to_image
Args: target: ndarray (17, 256, 192) target_weight: ndarray (17, 1) metas: dict Returns: an RGB image, R en
Painter/eval/mmpose_custom/data/pipelines/custom_transform.py:64
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
Painter/util/pos_embed.py:49
↓ 2 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
Painter/util/vitdet_utils.py:128
↓ 2 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
SegGPT/SegGPT_inference/util/vitdet_utils.py:128
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
Painter/util/vitdet_utils.py:63
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
SegGPT/SegGPT_inference/util/vitdet_utils.py:63
↓ 2 callersMethodget_shape
(self)
Painter/util/masking_generator.py:38
↓ 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
Painter/data/mmpose_custom/apis/train.py:29
↓ 2 callersFunctionis_dist_avail_and_initialized
()
Painter/util/ddp_utils.py:60
↓ 2 callersFunctionload_image_with_retry
(image_path)
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:70
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
Painter/util/misc.py:124
↓ 2 callersFunctionmask_matrix_nms
Matrix NMS for multi-class masks. Args: masks (Tensor): Has shape (num_instances, h, w) labels (Tensor): Labels of correspond
Painter/util/matrix_nms.py:5
↓ 2 callersMethodno_weight_decay
(self)
Painter/models_painter.py:352
↓ 2 callersMethodpost_process_segm_output_by_minmax
Post-processing to turn output segm image to class index map Args: pred_path: path to a (H, W, 3) image Return
Painter/eval/coco_panoptic/COCOCAInstSegEvaluatorCustom.py:172
↓ 2 callersFunctionprint
(*args, **kwargs)
Painter/util/ddp_utils.py:52
↓ 2 callersFunctionresizeImgIo
(img)
SegGPT/app_gradio.py:90
↓ 2 callersFunctionrun_one_image
(img, tgt, model, device)
SegGPT/SegGPT_inference/seggpt_engine.py:27
↓ 2 callersFunctionsetup_for_distributed
This function disables printing when not in master process
Painter/util/misc.py:171
↓ 2 callersMethodstep
(self)
Painter/util/lars.py:23
↓ 2 callersMethodsynchronize_between_processes
(self)
Painter/util/misc.py:117
↓ 2 callersMethodunpatchify
x: (N, L, patch_size**2 *3) imgs: (N, 3, H, W)
SegGPT/SegGPT_inference/models_seggpt.py:376
↓ 2 callersMethodupdate
(self, value, n=1)
Painter/util/misc.py:38
↓ 1 callersMethod__init__
( self, root: str, json_path_list: list, transform: Optional[Callable] = None,
Painter/data/pairdataset.py:38
↓ 1 callersMethod__init__
Initialisation for DatasetFromSampler.
Painter/data/sampler.py:29
↓ 1 callersMethod__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
Painter/util/vitdet_utils.py:165
↓ 1 callersMethod__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
SegGPT/SegGPT_inference/util/vitdet_utils.py:165
↓ 1 callersFunction_convert_category_id
(segment_info, meta)
Painter/data/register_coco_panoptic_annos_semseg.py:86
↓ 1 callersMethod_mask
(self, mask, max_mask_patches)
Painter/util/masking_generator.py:41
↓ 1 callersFunctionadd_decomposed_rel_pos
Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`. https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e
Painter/util/vitdet_utils.py:96
↓ 1 callersFunctionadd_decomposed_rel_pos
Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`. https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e
SegGPT/SegGPT_inference/util/vitdet_utils.py:96
↓ 1 callersMethodadd_meter
(self, name, meter)
Painter/util/misc.py:121
↓ 1 callersFunctionbuild_transform
(is_train, args)
Painter/util/datasets.py:31
↓ 1 callersMethodcenter_of_mass
Calculate the centroid coordinates of the mask. Args: mask (Tensor): The mask to be calculated, shape (h, w). esp (fl
Painter/data/mmdet_custom/data/pipelines/transforms.py:153
↓ 1 callersFunctioncolorEncode
Modified from https://github.com/CSAILVision/semantic-segmentation-pytorch/blob/master/mit_semseg/utils.py
Painter/data/ade20k/gen_color_ade20k_sem.py:66
↓ 1 callersFunctioncombine_semantic_and_instance_outputs_custom
Implement a simple combining logic following "combine_semantic_and_instance_predictions.py" in panopticapi to produce panoptic segmentati
Painter/eval/coco_panoptic/COCOPanoEvaluatorCustom.py:47
↓ 1 callersFunctioncompute_errors
(gt, pred)
Painter/data/depth/eval_with_pngs.py:51
↓ 1 callersFunctioncompute_errors
(gt, pred)
Painter/eval/nyuv2_depth/eval_with_pngs.py:50
↓ 1 callersFunctionconvert
(input, output)
Painter/data/prepare_ade20k_sem_seg.py:11
↓ 1 callersFunctionconvert_image
(i, scene, depth_raw, image)
Painter/data/depth/extract_official_train_test_set_from_mat.py:44
↓ 1 callersFunctiondefine_colors_per_location_r_gb
(num_location_r=16, num_location_gb=20)
Painter/data/mmdet_custom/data/pipelines/transforms.py:29
↓ 1 callersFunctiondownload_file_from_google_drive
(id, destination)
Painter/data/depth/download_from_gdrive.py:6
↓ 1 callersFunctionencode_target_to_image
(target, target_weight, target_dir, metas)
Painter/data/mmpose_custom/data/pipelines/custom_transform.py:39
↓ 1 callersFunctionencode_target_to_image
(target, target_weight, target_dir, metas)
Painter/eval/mmpose_custom/data/pipelines/custom_transform.py:39
↓ 1 callersFunctioneval
(pred_depths)
Painter/data/depth/eval_with_pngs.py:149
↓ 1 callersFunctioneval
(pred_depths)
Painter/eval/nyuv2_depth/eval_with_pngs.py:148
↓ 1 callersMethodevaluate
Evaluate coco keypoint results. The pose prediction results will be saved in ``${res_folder}/result_keypoints.json``. Note:
Painter/data/mmpose_custom/data/topdown_coco_dataset.py:194
↓ 1 callersFunctionevaluate_pt
(data_loader, model, device, epoch=None, global_rank=None, args=None)
Painter/engine_train.py:148
↓ 1 callersMethodforward_decoder
(self, x)
Painter/models_painter.py:420
↓ 1 callersMethodforward_decoder
(self, x)
SegGPT/SegGPT_inference/models_seggpt.py:436
↓ 1 callersMethodforward_encoder
(self, imgs, tgts, bool_masked_pos)
Painter/models_painter.py:385
↓ 1 callersMethodforward_encoder
(self, imgs, tgts, bool_masked_pos, seg_type, merge_between_batch=-1)
SegGPT/SegGPT_inference/models_seggpt.py:391
↓ 1 callersMethodforward_loss
tgts: [N, 3, H, W] pred: [N, 3, H, W] mask: [N, L], 0 is keep, 1 is remove, valid: [N, 3, H, W]
Painter/models_painter.py:433
↓ 1 callersMethodforward_loss
tgts: [N, 3, H, W] pred: [N, 3, H, W] mask: [N, L], 0 is keep, 1 is remove, valid: [N, 3, H, W]
SegGPT/SegGPT_inference/models_seggpt.py:448
↓ 1 callersMethodforward_pseudo_test
Defines the computation performed at every call when testing.
Painter/data/mmpose_custom/model/top_down.py:163
↓ 1 callersMethodforward_pseudo_test
Defines the computation performed at every call when testing.
Painter/eval/mmpose_custom/model/top_down.py:163
↓ 1 callersMethodforward_test
Defines the computation performed at every call when testing.
Painter/data/mmpose_custom/model/top_down.py:122
↓ 1 callersMethodforward_test
Defines the computation performed at every call when testing.
Painter/eval/mmpose_custom/model/top_down.py:122
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
Painter/util/pos_embed.py:38
↓ 1 callersFunctionget_args_parser
()
Painter/main_train.py:48
↓ 1 callersFunctionget_args_parser
()
Painter/data/sidd/gen_json_sidd.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/derain/gen_json_rain.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/coco_semseg/gen_color_coco_panoptic_segm.py:68
↓ 1 callersFunctionget_args_parser
()
Painter/data/coco_semseg/gen_json_coco_panoptic_segm.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/mmpose_custom/painter_inference_pose.py:38
↓ 1 callersFunctionget_args_parser
()
Painter/data/mmpose_custom/gen_json_coco_pose.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/ade20k/gen_color_ade20k_sem.py:114
↓ 1 callersFunctionget_args_parser
()
Painter/data/ade20k/gen_json_ade20k_sem.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/lol/gen_json_lol.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/mmdet_custom/gen_json_coco_panoptic_inst.py:17
↓ 1 callersFunctionget_args_parser
()
Painter/data/depth/gen_json_nyuv2_depth.py:17
next →1–100 of 326, ranked by callers