detectron2.modeling

detectron2.modeling.poolers module

detectron2.modeling.sampling module

detectron2.modeling.box_regression module

Model Registries

These are different registries provided in modeling. Each registry provide you the ability to replace it with your customized component, without having to modify detectron2’s code.

Note that it is impossible to allow users to customize any line of code directly. Even just to add one line at some place, you’ll likely need to find out the smallest registry which contains that line, and register your component to that registry.