cxliu0 / PET

[ICCV 2023] Point-Query Quadtree for Crowd Counting, Localization, and More
MIT License
61 stars 5 forks source link

Calculation of FLOPs #16

Closed 2226450890 closed 7 months ago

2226450890 commented 9 months ago

Dear author,

I have tried to calculate the FLOPs for PET, but after much effort could not calculate it successfully, can you provide its calculation?

Thank you very much for your response.

cxliu0 commented 8 months ago

The computational cost of our approach depends on the input image, as the point-query quadtree is dynamically constructed during inference. Therefore, the FLOPs also vary from image to image. You may try to use the first layer of the point-query quadtree to compute FLOPs.