Open DrRyanHuang opened 7 months ago
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
If there are any results, you can provide feedback.
Hi, Happy Spring Festival, thx for your great work!
I did a performance analysis on the inference of the torch code and it seems that the
reshape
operation inFrozenBatchNorm2d
(src/nn/backbone/common.py
) becomes a bottleneckIs there any way to solve this problem?