MCPcopy Create free account

hub / github.com/IRVLUTD/UnseenObjectsWithMeanShift / functions

Functions680 in github.com/IRVLUTD/UnseenObjectsWithMeanShift

Functionget_predictor_crop
(cfg_file=cfg_file_MSMFormer_crop, weight_path=weight_path_MSMFormer_crop, input_image="RGBD_ADD")
lib/fcn/test_demo_UOAIS.py:73
Functionget_predictor_crop
(cfg_file=cfg_file_MSMFormer_crop, weight_path=weight_path_MSMFormer_crop, input_image="RGBD_ADD")
lib/datasets/test_demo_UOAIS.py:73
Methodget_transform
(self, img, boxes)
MSMFormer/meanshiftformer/data/dataset_mappers/unseen_instance_dataset_mapper.py:117
Functionim_list_to_blob
Convert a list of images into a network input. Assumes images are already prepared (means subtracted, BGR order, ...).
lib/utils/blob.py:13
Functionimread_indexed
Load segmentation image (with palette) given filename.
lib/utils/mask.py:152
Functionimwrite_indexed
Save indexed png with palette.
lib/utils/mask.py:158
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to Non
MSMFormer/meanshiftformer/modeling/backbone/swin.py:635
Methodinstance_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/pretrained_meanshiftformer_model.py:461
Methodinstance_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/meanshiftformer_model.py:414
Methodinverse
(self)
MSMFormer/meanshiftformer/data/dataset_mappers/unseen_instance_dataset_mapper.py:196
Functionlist_datasets
List all registered imdbs.
lib/datasets/factory.py:41
Functionload_uoais_json
Load a json file with uoais's instances annotation format. For amodal instance segmentation, dataset_name should include the keword "amodal"
lib/datasets/uoais_dataset.py:306
Functionlog_softmax_high_dimension
(input)
lib/networks/utils.py:7
Methodloss_labels
Classification loss (NLL) targets dicts must contain the key "labels" containing a tensor of dim [nb_target_boxes]
MSMFormer/meanshiftformer/modeling/criterion.py:122
Methodloss_masks
Compute the losses related to the masks: the focal loss and the dice loss. targets dicts must contain the key "masks" containing a tensor of d
MSMFormer/meanshiftformer/modeling/criterion.py:140
Functionmain
(args)
MSMFormer/tabletop_train_net_pretrained.py:303
Functionmake_cost_matrix
Create a cost matrix from a profit matrix by calling 'inversion_function' to invert each value. The inversion function must take one nume
lib/utils/munkres.py:625
Methodmake_cost_matrix
**DEPRECATED** Please use the module function ``make_cost_matrix()``.
lib/utils/munkres.py:261
Functionmake_decoder_layers
(cfg, in_channels, batch_norm=False)
lib/networks/unets.py:107
Functionmake_encoder_layers
(cfg, in_channels=3, batch_norm=False)
lib/networks/unets.py:90
Functionmask_to_tight_box
(mask)
lib/utils/mask.py:189
Methodmaybe_add_full_model_gradient_clipping
(optim)
MSMFormer/tabletop_train_net_pretrained.py:161
Functionmean_shift_smart_init
Runs mean shift with carefully selected seeds @param X: a [n x d] torch.FloatTensor of d-dim unit vectors @param dist_threshold: par
MSMFormer/meanshiftformer/modeling/transformer_decoder/mean_shift.py:192
Functionms_deform_attn_backward
MSMFormer/meanshiftformer/modeling/pixel_decoder/ops/src/ms_deform_attn.h:46
Functionms_deform_attn_cpu_backward
MSMFormer/meanshiftformer/modeling/pixel_decoder/ops/src/cpu/ms_deform_attn_cpu.cpp:34
Functionms_deform_attn_cpu_forward
MSMFormer/meanshiftformer/modeling/pixel_decoder/ops/src/cpu/ms_deform_attn_cpu.cpp:22
Functionms_deform_attn_forward
MSMFormer/meanshiftformer/modeling/pixel_decoder/ops/src/ms_deform_attn.h:25
Functionmunkres_match
Matches the set of states in sts_pred such that it minimizes the hamming distance between sts_pred and sts_true. We assume here that the stat
lib/utils/munkres.py:682
Methodname
(self)
lib/datasets/imdb.py:23
Methodnum_classes
(self)
lib/datasets/imdb.py:27
Methodpanoptic_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/pretrained_meanshiftformer_model.py:403
Methodpanoptic_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/meanshiftformer_model.py:356
Functionprep_im_for_blob
Mean subtract and scale an image for use in a blob.
lib/utils/blob.py:31
Methodprocess_depth
Process depth channel - change from millimeters to meters - cast to float32 data type - add random no
lib/datasets/pushing_dataset.py:141
Functionrandom_add
Randomly add part of mask @param label: a [H x W] numpy array of {0, 1}
lib/utils/augmentation.py:432
Functionrandom_color_warp
Given an RGB image [H x W x 3], add random hue, saturation and luminosity to the image Code adapted from: https://github.com/yuxng/PoseCNN/b
lib/utils/augmentation.py:145
Functionrandom_cut
Randomly cut part of mask @param label: a [H x W] numpy array of {0, 1}
lib/utils/augmentation.py:381
Functionrandom_ellipses
Randomly add/drop a few ellipses in the mask This is adapted from the DexNet 2.0 code. Their code: https://github.com/BerkeleyAutomat
lib/utils/augmentation.py:242
Functionrandom_horizontal_flip
Randomly horizontally flip the image/label w.p. 0.5 @param image: a [H x W x 3] numpy array @param label: a [H x W] numpy array
lib/utils/augmentation.py:179
Functionrandom_morphological_transform
Randomly erode/dilate the label @param label: a [H x W] numpy array of {0, 1}
lib/utils/augmentation.py:195
Functionrandom_rotation
Randomly rotate mask @param label: a [H x W] numpy array of {0, 1}
lib/utils/augmentation.py:348
Functionrandom_translation
Randomly translate mask @param label: a [H x W] numpy array of {0, 1}
lib/utils/augmentation.py:309
Functionread_sample
(filename_color, filename_depth, camera_params)
tools/get_network.py:124
Functionread_sample
(filename_color, filename_depth, camera_params)
lib/fcn/get_network_crop.py:123
Functionresnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/networks/resnet.py:367
Functionresnet152
Constructs a ResNet-152 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/networks/resnet.py:391
Functionresnet18
Constructs a ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/networks/resnet.py:273
Functionresnet34
Constructs a ResNet-34 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/networks/resnet.py:321
Functionresnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/networks/resnet.py:345
Functionrotation_x
(theta)
lib/utils/se3.py:63
Functionrotation_y
(theta)
lib/utils/se3.py:73
Functionrotation_z
(theta)
lib/utils/se3.py:83
Methodrun_step
(self)
MSMFormer/tabletop_train_net_pretrained.py:209
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
tools/test_image_with_ms_transformer.py:87
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
tools/get_network.py:96
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
tools/test_npy.py:77
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
tools/test_images.py:76
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
lib/fcn/get_backbone.py:77
Functionsave_data
meta = {'roi': roi, 'features': features_crop.cpu().detach().numpy(), 'labels': out_label_refined.cpu().detach().numpy()} filename = file_rgb
lib/fcn/get_network_crop.py:95
Functionse3_inverse
(RT)
lib/utils/se3.py:10
Functionse3_mul
(RT1, RT2)
lib/utils/se3.py:18
Functionseg_resnet34_8s_embedding
(num_classes=2, num_units=64, data=None)
lib/networks/SEG.py:173
Functionseg_resnet34_8s_embedding_early
(num_classes=2, num_units=64, data=None)
lib/networks/SEG.py:178
Functionseg_resnet50_8s_embedding
(num_classes=2, num_units=64, data=None)
lib/networks/SEG.py:183
Functionseg_unet_embedding
(num_classes=2, num_units=64, data=None)
lib/networks/SEG.py:168
Functionseg_vgg_embedding
(num_classes=2, num_units=64, data=None)
lib/networks/SEG.py:163
Methodsemantic_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/pretrained_meanshiftformer_model.py:397
Methodsemantic_inference
(self, mask_cls, mask_pred)
MSMFormer/meanshiftformer/meanshiftformer_model.py:350
Functionsigmoid_ce_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
MSMFormer/meanshiftformer/modeling/criterion.py:48
Methodsize_divisibility
(self)
MSMFormer/meanshiftformer/modeling/backbone/swin.py:769
Functionsoftmax_high_dimension
(input)
lib/networks/utils.py:23
Functionstandardize_image
Convert a numpy.ndarray [H x W x 3] of images to [0,1] range, and then standardizes @return: a [H x W x 3] numpy array of np.float32
lib/utils/augmentation.py:131
Functionstandardize_image
Convert a numpy.ndarray [H x W x 3] of images to [0,1] range, and then standardizes @return: a [H x W x 3] numpy array of np.float32
lib/datasets/load_OSD_UOAIS.py:77
Functiontest_dataset_crop
(cfg,dataset, predictor, network_crop, visualization=False, topk=True, confident_score=0.9, low_threshold=0.4)
lib/fcn/test_utils.py:463
Functiontest_image_segmentation
test on a single image
lib/fcn/test_imageset.py:20
Functionunnormalize_depth
unnormalize the input depth (0 ~ 255) and return depth image (mm) Args: depth([np.uint8]): normalized depth array [H, W, 3] (0 ~ 255)
lib/datasets/load_OSD_UOAIS.py:24
Functionunpad_im
(im, factor)
lib/utils/blob.py:61
Methodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
MSMFormer/meanshiftformer/modeling/transformer_decoder/meanshiftformer_transformer_decoder.py:297
Methodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
MSMFormer/meanshiftformer/modeling/transformer_decoder/mask2former_transformer_decoder.py:160
Functionyaml_from_file
Load a config file and merge it into the default options.
lib/fcn/config.py:445
← previous601–680 of 680, ranked by callers