Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kitware/COAT
/ functions
Functions
154 in github.com/Kitware/COAT
⨍
Functions
154
◇
Types & classes
37
Method
__init__
( self, cfg, faster_rcnn_predictor, box_head_2nd, box_head_3rd,
models/coat.py:189
Method
__init__
(self, featmap_names=["feat_res4", "feat_res5"], in_channels=[1024, 2048], dim=256)
models/coat.py:590
Method
__init__
Args: in_channels (int): Input channels. num_classes (int, optional): Defaults to 2 (background and pedestrian).
models/coat.py:661
Method
__init__
( self, cfg, trans_names, kernel_size, use_feature_mask, )
models/transformer.py:20
Method
__init__
( self, cfg, trans_names, kernel_size, use_feature_mask, )
models/transformer.py:70
Method
__init__
(self, cfg, channel, kernel_size, padding, stride, hidden, use_feature_mask )
models/transformer.py:142
Method
__init__
(self, tokensize, hidden=128, num_head=4, dropout=0.1)
models/transformer.py:207
Method
__init__
(self, channel, hidden, output_size, kernel_size, stride, padding)
models/transformer.py:242
Method
__init__
(self, tokensize, d_model, head, p=0.1)
models/transformer.py:262
Method
__init__
(self, d_model, p=0.1)
models/transformer.py:289
Method
__init__
(self, resnet)
models/resnet.py:34
Method
__init__
(self, cfg)
loss/softmax_loss.py:10
Method
__init__
(self, num_features, num_pids, num_cq_size, oim_momentum, oim_scalar)
loss/oim.py:42
Method
__len__
(self)
datasets/base.py:41
Method
__str__
(self)
utils/utils.py:78
Method
__str__
(self)
utils/utils.py:107
Method
_load_annotations
(self)
datasets/cuhk_sysu.py:54
Method
_load_annotations
(self)
datasets/prw.py:64
Function
all_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[dat
utils/utils.py:197
Method
avg
(self)
utils/utils.py:62
Function
collate_fn
(batch)
datasets/build.py:66
Function
eval_search_cuhk
gallery_dataset/query_dataset: an instance of BaseDataset gallery_det (list of ndarray): n_det x [x1, x2, y1, y2, score] per image galler
eval_func.py:92
Function
eval_search_prw
gallery_det (list of ndarray): n_det x [x1, x2, y1, y2, score] per image gallery_feat (list of ndarray): n_det x D features per image que
eval_func.py:303
Function
f
(x)
utils/utils.py:407
Function
filename
(path)
utils/utils.py:346
Method
forward
(self, images, targets=None, query_img_as_gallery=False)
models/coat.py:154
Method
forward
Arguments: features (List[Tensor]) boxes (List[Tensor[N, 4]]) image_shapes (List[Tuple[H, W]])
models/coat.py:245
Method
forward
Arguments: featmaps: OrderedDict[Tensor], and in featmap_names you can choose which featmaps to use
models/coat.py:608
Method
forward
(self, x)
models/coat.py:682
Method
forward
(self, box_features)
models/transformer.py:49
Method
forward
(self, inputs)
models/transformer.py:121
Method
forward
(self, inputs)
models/transformer.py:163
Method
forward
(self, x)
models/transformer.py:215
Method
forward
(self, query, key, value)
models/transformer.py:232
Method
forward
(self, x)
models/transformer.py:250
Method
forward
(self, x)
models/transformer.py:272
Method
forward
(self, x)
models/transformer.py:298
Method
forward
(self, x)
models/resnet.py:38
Method
forward
Args: inputs: feature matrix with shape (batch_size, feat_dim). labels: ground truth labels with shape (num_classes).
loss/softmax_loss.py:23
Method
forward
(ctx, inputs, targets, lut, cq, header, momentum)
loss/oim.py:11
Method
forward
(self, inputs, roi_label)
loss/oim.py:55
Method
global_avg
(self)
utils/utils.py:67
Function
init_distributed_mode
(args)
utils/utils.py:315
Method
max
(self)
utils/utils.py:71
Method
median
(self)
utils/utils.py:57
Function
read_json
(fpath)
utils/utils.py:358
Method
set_box_pid
(boxes, box, pids, pid)
datasets/cuhk_sysu.py:74
Function
symlink
(src, dst, overwrite=True, **kwargs)
utils/utils.py:374
Method
synchronize_between_processes
Warning: does not synchronize the deque!
utils/utils.py:43
Method
synchronize_between_processes
(self)
utils/utils.py:113
Function
test
()
utils/km.py:137
Method
value
(self)
utils/utils.py:75
Function
weights_init_classifier
(m)
loss/softmax_loss.py:56
Function
weights_init_kaiming
(m)
loss/softmax_loss.py:41
← previous
101–154 of 154, ranked by callers