facebookresearch / detr

End-to-End Object Detection with Transformers
Apache License 2.0
13.09k stars 2.37k forks source link

remove unused code #549

Open ShoufaChen opened 1 year ago

ShoufaChen commented 1 year ago

It seems that these lines are pointless.

Removing these lines has no effect no matter whetherself.norm is None or not.

Besides, self.norm coundn't be None otherwise intermediate.append(self.norm(output)) would throw an error.