Questions about the performance analysis of `FrozenBatchNorm2d`
DrRyanHuang opened this issue · comments
Ryan commented
lyuwenyu commented
A simple solution is to replace FrozenBatchNorm2d
with BatchNorm2d
before deployment.
You can do this by adding a member function convert_to_deploy
to the backbone.
def convert_to_deploy(self, ):
# code repleace `FrozenBatchNorm2d` with `BatchNorm2d`
See this call stack
- https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetr_pytorch/tools/export_onnx.py#L37
- https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetr_pytorch/src/zoo/rtdetr/rtdetr.py#L39
If there are any results, you can provide feedback.