MCPcopy Create free account

hub / github.com/Kitware/COAT / functions

Functions154 in github.com/Kitware/COAT

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
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[dat
utils/utils.py:197
Methodavg
(self)
utils/utils.py:62
Functioncollate_fn
(batch)
datasets/build.py:66
Functioneval_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
Functioneval_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
Functionf
(x)
utils/utils.py:407
Functionfilename
(path)
utils/utils.py:346
Methodforward
(self, images, targets=None, query_img_as_gallery=False)
models/coat.py:154
Methodforward
Arguments: features (List[Tensor]) boxes (List[Tensor[N, 4]]) image_shapes (List[Tuple[H, W]])
models/coat.py:245
Methodforward
Arguments: featmaps: OrderedDict[Tensor], and in featmap_names you can choose which featmaps to use
models/coat.py:608
Methodforward
(self, x)
models/coat.py:682
Methodforward
(self, box_features)
models/transformer.py:49
Methodforward
(self, inputs)
models/transformer.py:121
Methodforward
(self, inputs)
models/transformer.py:163
Methodforward
(self, x)
models/transformer.py:215
Methodforward
(self, query, key, value)
models/transformer.py:232
Methodforward
(self, x)
models/transformer.py:250
Methodforward
(self, x)
models/transformer.py:272
Methodforward
(self, x)
models/transformer.py:298
Methodforward
(self, x)
models/resnet.py:38
Methodforward
Args: inputs: feature matrix with shape (batch_size, feat_dim). labels: ground truth labels with shape (num_classes).
loss/softmax_loss.py:23
Methodforward
(ctx, inputs, targets, lut, cq, header, momentum)
loss/oim.py:11
Methodforward
(self, inputs, roi_label)
loss/oim.py:55
Methodglobal_avg
(self)
utils/utils.py:67
Functioninit_distributed_mode
(args)
utils/utils.py:315
Methodmax
(self)
utils/utils.py:71
Methodmedian
(self)
utils/utils.py:57
Functionread_json
(fpath)
utils/utils.py:358
Methodset_box_pid
(boxes, box, pids, pid)
datasets/cuhk_sysu.py:74
Functionsymlink
(src, dst, overwrite=True, **kwargs)
utils/utils.py:374
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
utils/utils.py:43
Methodsynchronize_between_processes
(self)
utils/utils.py:113
Functiontest
()
utils/km.py:137
Methodvalue
(self)
utils/utils.py:75
Functionweights_init_classifier
(m)
loss/softmax_loss.py:56
Functionweights_init_kaiming
(m)
loss/softmax_loss.py:41
← previous101–154 of 154, ranked by callers