Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UCSB-VRL/WildlifeMapper
/ functions
Functions
241 in github.com/UCSB-VRL/WildlifeMapper
⨍
Functions
241
◇
Types & classes
46
↓ 1 callers
Function
window_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 callers
Method
xywhn2xyxy
(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
Function
all_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
Method
apply_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
Method
apply_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
Function
area_from_rle
(rle: Dict[str, Any])
wildlifemapper/segment_anything/utils/amg.py:152
Function
augment_hsv
(im, hgain=0.5, sgain=0.5, vgain=0.5)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:33
Method
avg
(self)
wildlifemapper/segment_anything/utils/misc.py:255
Function
batch_iterator
(batch_size: int, *args)
wildlifemapper/segment_anything/utils/amg.py:98
Function
batched_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
Function
box_xyxy_to_xywh
(box_xyxy: torch.Tensor)
wildlifemapper/segment_anything/utils/amg.py:91
Function
build_all_layer_point_grids
Generates point grids for all crop layers.
wildlifemapper/segment_anything/utils/amg.py:189
Function
build_sam_vit_b
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:44
Function
build_sam_vit_h
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:19
Function
build_sam_vit_l
(checkpoint=None, args=None)
wildlifemapper/segment_anything/build_sam.py:33
Function
classify_transforms
(size=224)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:101
Function
coco_encode_rle
(uncompressed_rle: Dict[str, Any])
wildlifemapper/segment_anything/utils/amg.py:294
Function
collate_fn
(batch)
wildlifemapper/segment_anything/utils/misc.py:66
Function
custom_collate
(batch)
wildlifemapper/segment_anything/utils/misc.py:71
Function
cutout
(im, labels, p=0.5)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:59
Method
decompose
(self)
wildlifemapper/segment_anything/utils/misc.py:31
Function
denormalize
(x, mean=IMAGENET_MEAN, std=IMAGENET_STD)
wildlifemapper/segment_anything/utils/augmentation_yolo.py:27
Method
device
(self)
wildlifemapper/segment_anything/predictor.py:259
Method
filter
(self, keep: torch.Tensor)
wildlifemapper/segment_anything/utils/amg.py:44
Method
fliplr_test
(self, img, target)
wildlifemapper/dataloader_coco.py:50
Method
forward
(self, image, box)
wildlifemapper/segment_anything/network.py:59
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
(self, x)
wildlifemapper/segment_anything/modeling/box_decoder.py:171
Method
forward
( self, hfc_embed, patch_embed, )
wildlifemapper/segment_anything/modeling/box_decoder.py:207
Method
forward
Generate positional encoding for a grid of the specified size.
wildlifemapper/segment_anything/modeling/pos_encoder.py:59
Method
forward
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
Method
forward
(self, x: torch.Tensor, x_hfc=None)
wildlifemapper/segment_anything/modeling/image_encoder.py:122
Method
forward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:187
Method
forward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:245
Method
forward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:412
Method
forward
(self, x: torch.Tensor)
wildlifemapper/segment_anything/modeling/image_encoder.py:445
← previous
next →
101–200 of 241, ranked by callers