↓ 3 callersFunctiongather_topk_anchorsr""" Args: metrics (Tensor, float32): shape[B, n, L], n: num_gts, L: num_anchors topk (int): The number of top elements to look fo
ppdet/modeling/assigners/utils.py:83
↓ 3 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ppdet/modeling/backbones/swin_transformer.py:108