↓ 2 callersFunctionfind_top_rpn_proposals For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn_outputs.py:48
↓ 2 callersFunctionpermute_all_cls_and_box_to_N_HWA_K_and_concat Rearrange the tensor layout from the network output, i.e.: list[Tensor]: #lvl tensors of shape (N, A x K, Hi, Wi) to per-image prediction
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/retinanet.py:37
↓ 2 callersMethodprepare_control_image(
self,
image,
width,
height,
batch_size,
num_images_per_promp
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline_controlnet_inpainting.py:81