↓ 7 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
diffusioninst/swintransformer.py:51
↓ 2 callersMethodget_loss(self, loss, outputs, targets, indices, num_boxes, **kwargs)
diffusioninst/loss.py:399
↓ 2 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
diffusioninst/swintransformer.py:69
↓ 1 callersMethodbatched_vote_nms(self, boxes, scores, labels, vote_type, vote_thresh=0.65)
diffusioninst/test_time_augmentation.py:190
↓ 1 callersMethodbbox_vote(self, boxes, scores, labels, vote_thresh, vote_type="softvote")
diffusioninst/test_time_augmentation.py:202
↓ 1 callersMethodddim_sample(self, batched_inputs, backbone_feats, images_whwh, images, clip_denoised=True, do_postprocess=True)
diffusioninst/detector.py:353
↓ 1 callersFunctiongeneralized_box_iou Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where
diffusioninst/util/box_ops.py:40
↓ 1 callersMethodmerge_result_from_multi_scales(
self, boxes, scores, labels, nms_type="soft-vote", vote_thresh=0.65, max_detection=100
)
diffusioninst/test_time_augmentation.py:174
↓ 1 callersMethodmodel_predictions(self, backbone_feats, images_whwh, x, t, x_self_cond=None, clip_x_start=False)
diffusioninst/detector.py:334