detrium.nn.backbones.common

Copied from RT-DETR (https://github.com/lyuwenyu/RT-DETR) Copyright(c) 2023 lyuwenyu. All Rights Reserved.

class FrozenBatchNorm2d(nn.Module)

copy and modified from https://github.com/facebookresearch/detr/blob/master/models/backbone.py BatchNorm2d where the batch statistics and the affine parameters are fixed. Copy-paste from torchvision.misc.ops with added eps before rqsrt, without which any other models than torchvision.models.resnet[18,34,50,101] produce nans.

名称类型默认值
num_features——
eps—1e-05