cxliu0 / PET

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

Some questions about code #13

Closed SherlockHolmes221 closed 5 months ago

SherlockHolmes221 commented 6 months ago

why need to rescale offset range during testing, thanks if 'test' in kwargs: outputs_offsets[...,0] /= (img_h / 256) outputs_offsets[...,1] /= (img_w / 256)

cxliu0 commented 6 months ago

The model is trained using 256x256 image patches. The rescaling operation ensures a consistent offset range during training and inference.