Open JosephChenHub opened 2 years ago
Another concern is that there exists a difference in DCN's implementation between this repo. and CenterNet .
Sounds like your resize didn't keep the aspect ratio?
Sounds like your resize didn't keep the aspect ratio?
I use the AffineTransform to resize the image while keeping the aspect ratio.
Hi Feng, I'd like to first appreciate this implementation. However, as mentioned in issue #35 , the processing of inference is different from the original Centernet. Specifically, the original algo. resize the image to (512, 512), and then the decoded results are mapped into the original sizes. But in this implementation, the input is padded and then sent to the network. I think the major performance gain is brought by the larger resolution, and I change the inference process like Centernet ( steps: resize the image to (512, 512) -> forward -> decode on the heatmap (128x128) -> resize via the original width/height), the inference results are listed as follows.
Compared to the official implementation, the performance gain is about 0.8 points.