MCPcopy Create free account

hub / github.com/UCSB-VRL/WildlifeMapper / functions

Functions241 in github.com/UCSB-VRL/WildlifeMapper

↓ 1 callersFunctionwindow_unpartition
Window unpartition into original sequences and removing padding. Args: windows (tensor): input tokens with [B * num_windows, window_s
wildlifemapper/segment_anything/modeling/image_encoder.py:288
↓ 1 callersMethodxywhn2xyxy
(self, x, padw=0, padh=0)
wildlifemapper/dataloader_coco.py:201
Method__call__
(self, image, target)
wildlifemapper/dataloader_coco.py:214
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:153
Method__call__
(self, img: PIL.Image.Image, target: dict)
wildlifemapper/segment_anything/utils/augmentation.py:163
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:174
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:186
Method__call__
(self, img, target=None)
wildlifemapper/segment_anything/utils/augmentation.py:198
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:207
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:223
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:230
Method__call__
(self, img, target)
wildlifemapper/segment_anything/utils/augmentation.py:239
Method__call__
(self, image, target=None)
wildlifemapper/segment_anything/utils/augmentation.py:248
Method__call__
(self, image, target=None)
wildlifemapper/segment_anything/utils/augmentation.py:269
Method__call__
(self, image, target)
wildlifemapper/segment_anything/utils/augmentation.py:291
Method__call__
(self, im)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:201
Method__delitem__
(self, key: str)
wildlifemapper/segment_anything/utils/amg.py:35
Method__getattr__
(self, attr)
wildlifemapper/segment_anything/utils/misc.py:299
Method__getitem__
(self, key: str)
wildlifemapper/segment_anything/utils/amg.py:38
Method__init__
(self, img_folder, ann_file, image_set, transforms, return_masks)
wildlifemapper/dataloader_coco.py:24
Method__init__
(self, return_masks=False)
wildlifemapper/dataloader_coco.py:211
Method__init__
(self, coco_gt, iou_types)
wildlifemapper/inference.py:93
Method__init__
( self, image_encoder, mask_decoder, prompt_encoder, )
wildlifemapper/segment_anything/network.py:8
Method__init__
Uses SAM to calculate the image embedding for an image, and then allow repeated, efficient mask prediction given prompts. Ar
wildlifemapper/segment_anything/predictor.py:18
Method__init__
Create the criterion. Parameters: num_classes: number of object categories, omitting the special no-object category m
wildlifemapper/segment_anything/build_sam.py:68
Method__init__
Predicts masks given an image and prompt embeddings, using a transformer architecture. Arguments: transformer_dim
wildlifemapper/segment_anything/modeling/box_decoder.py:17
Method__init__
( self, d_model = 1024, nhead = 8, dropout = 0.1,
wildlifemapper/segment_anything/modeling/box_decoder.py:182
Method__init__
(self, num_pos_feats: int = 64, scale: Optional[float] = None)
wildlifemapper/segment_anything/modeling/pos_encoder.py:41
Method__init__
Creates the matcher Params: cost_class: This is the relative weight of the classification error in the matching cost
wildlifemapper/segment_anything/modeling/matcher.py:19
Method__init__
Args: img_size (int): Input image size. patch_size (int): Patch size. in_chans (int): Number of input ima
wildlifemapper/segment_anything/modeling/image_encoder.py:18
Method__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. qkv_bias (bool):
wildlifemapper/segment_anything/modeling/image_encoder.py:209
Method__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
wildlifemapper/segment_anything/modeling/image_encoder.py:390
Method__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
wildlifemapper/segment_anything/modeling/image_encoder.py:423
Method__init__
( self, d_model = 1024, nhead = 8, dropout = 0.1,
wildlifemapper/segment_anything/modeling/image_encoder.py:455
Method__init__
(self, num_channels: int, eps: float = 1e-6)
wildlifemapper/segment_anything/modeling/common.py:32
Method__init__
A transformer decoder that attends to an input image using queries whose positional embedding is supplied. Args: d
wildlifemapper/segment_anything/modeling/transformer.py:17
Method__init__
A transformer block with four layers: (1) self-attention of sparse inputs, (2) cross attention of sparse inputs to dense inputs, (3)
wildlifemapper/segment_anything/modeling/transformer.py:110
Method__init__
SAM predicts object masks from an image and input prompts. Arguments: image_encoder (ImageEncoderViT): The backbone used t
wildlifemapper/segment_anything/modeling/sam.py:23
Method__init__
(self, num_pos_feats: int = 64, scale: Optional[float] = None)
wildlifemapper/segment_anything/modeling/prompt_encoder.py:177
Method__init__
(self, tensors, mask: Optional[Tensor])
wildlifemapper/segment_anything/utils/misc.py:16
Method__init__
(self, window_size=20, fmt=None)
wildlifemapper/segment_anything/utils/misc.py:223
Method__init__
(self, delimiter="\t")
wildlifemapper/segment_anything/utils/misc.py:288
Method__init__
(self, size)
wildlifemapper/segment_anything/utils/augmentation.py:150
Method__init__
(self, min_size: int, max_size: int)
wildlifemapper/segment_anything/utils/augmentation.py:159
Method__init__
(self, size)
wildlifemapper/segment_anything/utils/augmentation.py:171
Method__init__
(self, p=0.5)
wildlifemapper/segment_anything/utils/augmentation.py:183
Method__init__
(self, sizes, max_size=None)
wildlifemapper/segment_anything/utils/augmentation.py:193
Method__init__
(self, max_pad)
wildlifemapper/segment_anything/utils/augmentation.py:204
Method__init__
(self, transforms1, transforms2, p=0.5)
wildlifemapper/segment_anything/utils/augmentation.py:218
Method__init__
(self, *args, **kwargs)
wildlifemapper/segment_anything/utils/augmentation.py:236
Method__init__
(self, mean, std)
wildlifemapper/segment_anything/utils/augmentation.py:244
Method__init__
(self, fliplr=0.5)
wildlifemapper/segment_anything/utils/augmentation.py:266
Method__init__
(self, transforms)
wildlifemapper/segment_anything/utils/augmentation.py:288
Method__init__
(self, target_length: int)
wildlifemapper/segment_anything/utils/transforms.py:20
Method__init__
( self, model: Sam, return_single_mask: bool, use_stability_score: bool = Fals
wildlifemapper/segment_anything/utils/onnx.py:25
Method__init__
(self, size=640)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:197
Method__init__
(self, **kwargs)
wildlifemapper/segment_anything/utils/amg.py:22
Method__repr__
(self)
wildlifemapper/segment_anything/utils/misc.py:34
Method__repr__
(self)
wildlifemapper/segment_anything/utils/augmentation.py:296
Method__setitem__
(self, key: str, item: Any)
wildlifemapper/segment_anything/utils/amg.py:29
Method__str__
(self)
wildlifemapper/segment_anything/utils/misc.py:271
Method__str__
(self)
wildlifemapper/segment_anything/utils/misc.py:307
Method_get_tgt_permutation_idx
(self, indices)
wildlifemapper/segment_anything/build_sam.py:155
Function_max_by_axis
(the_list)
wildlifemapper/segment_anything/utils/misc.py:37
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
wildlifemapper/segment_anything/utils/misc.py:176
Methodapply_boxes_torch
Expects a torch tensor with shape Bx4. Requires the original image size in (H, W) format.
wildlifemapper/segment_anything/utils/transforms.py:80
Methodapply_image_torch
Expects batched images with shape BxCxHxW and float format. This transformation may not exactly match apply_image. apply_image is
wildlifemapper/segment_anything/utils/transforms.py:52
Functionarea_from_rle
(rle: Dict[str, Any])
wildlifemapper/segment_anything/utils/amg.py:152
Functionaugment_hsv
(im, hgain=0.5, sgain=0.5, vgain=0.5)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:33
Methodavg
(self)
wildlifemapper/segment_anything/utils/misc.py:255
Functionbatch_iterator
(batch_size: int, *args)
wildlifemapper/segment_anything/utils/amg.py:98
Functionbatched_mask_to_box
Calculates boxes in XYXY format around masks. Return [0,0,0,0] for an empty mask. For input shape C1xC2x...xHxW, the output shape is C1xC2x..
wildlifemapper/segment_anything/utils/amg.py:303
Functionbox_xyxy_to_xywh
(box_xyxy: torch.Tensor)
wildlifemapper/segment_anything/utils/amg.py:91
Functionbuild_all_layer_point_grids
Generates point grids for all crop layers.
wildlifemapper/segment_anything/utils/amg.py:189
Functionbuild_sam_vit_b
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:44
Functionbuild_sam_vit_h
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:19
Functionbuild_sam_vit_l
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:33
Functionclassify_transforms
(size=224)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:101
Functioncoco_encode_rle
(uncompressed_rle: Dict[str, Any])
wildlifemapper/segment_anything/utils/amg.py:294
Functioncollate_fn
(batch)
wildlifemapper/segment_anything/utils/misc.py:66
Functioncustom_collate
(batch)
wildlifemapper/segment_anything/utils/misc.py:71
Functioncutout
(im, labels, p=0.5)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:59
Methoddecompose
(self)
wildlifemapper/segment_anything/utils/misc.py:31
Functiondenormalize
(x, mean=IMAGENET_MEAN, std=IMAGENET_STD)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:27
Methoddevice
(self)
wildlifemapper/segment_anything/predictor.py:259
Methodfilter
(self, keep: torch.Tensor)
wildlifemapper/segment_anything/utils/amg.py:44
Methodfliplr_test
(self, img, target)
wildlifemapper/dataloader_coco.py:50
Methodforward
(self, image, box)
wildlifemapper/segment_anything/network.py:59
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the form
wildlifemapper/segment_anything/build_sam.py:170
Methodforward
Perform the computation Parameters: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x
wildlifemapper/segment_anything/build_sam.py:215
Methodforward
Predict masks given image and prompt embeddings. Arguments: image_embeddings (torch.Tensor): the embeddings from the image
wildlifemapper/segment_anything/modeling/box_decoder.py:71
Methodforward
(self, x)
wildlifemapper/segment_anything/modeling/box_decoder.py:171
Methodforward
( self, hfc_embed, patch_embed, )
wildlifemapper/segment_anything/modeling/box_decoder.py:207
Methodforward
Generate positional encoding for a grid of the specified size.
wildlifemapper/segment_anything/modeling/pos_encoder.py:59
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tens
wildlifemapper/segment_anything/modeling/matcher.py:34
Methodforward
(self, x: torch.Tensor, x_hfc=None)
wildlifemapper/segment_anything/modeling/image_encoder.py:122
Methodforward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:187
Methodforward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:245
Methodforward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:412
Methodforward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:445
← previousnext →101–200 of 241, ranked by callers