↓ 4 callersFunctioncalculate_weights_indices(in_length, out_length, scale, kernel, kernel_width, antialiasing)
ControlNet-v1-1-nightly/ldm/modules/image_degradation/utils_image.py:708
↓ 4 callersFunctionmasks_to_boxesCompute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spatia
ControlNet-v1-1-nightly/annotator/oneformer/oneformer/utils/box_ops.py:106
↓ 4 callersFunctionnchw_to_nlcFlatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmpose/mmpose/models/backbones/hrformer.py:33