{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/grid-anchor-based-image-cropping-a-new","title":"Grid Anchor based Image Cropping: A New Benchmark and An Efficient Model","arxiv_id":"1909.08989","date":"2019-09-18","proceeding":null,"authors":["Hui Zeng","Lida Li","Zisheng Cao","Lei Zhang"],"abstract":"Image cropping aims to improve the composition as well as aesthetic quality of an image by removing extraneous content from it. Most of the existing image cropping databases provide only one or several human-annotated bounding boxes as the groundtruths, which can hardly reflect the non-uniqueness and flexibility of image cropping in practice. The employed evaluation metrics such as intersection-over-union cannot reliably reflect the real performance of a cropping model, either. This work revisits the problem of image cropping, and presents a grid anchor based formulation by considering the special properties and requirements (e.g., local redundancy, content preservation, aspect ratio) of image cropping. Our formulation reduces the searching space of candidate crops from millions to no more than ninety. Consequently, a grid anchor based cropping benchmark is constructed, where all crops of each image are annotated and more reliable evaluation metrics are defined. To meet the practical demands of robust performance and high efficiency, we also design an effective and lightweight cropping model. By simultaneously considering the region of interest and region of discard, and leveraging multi-scale information, our model can robustly output visually pleasing crops for images of different scenes. With less than 2.5M parameters, our model runs at a speed of 200 FPS on one single GTX 1080Ti GPU and 12 FPS on one i7-6800K CPU. The code is available at: \\url{https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch}.","url_abs":"https://arxiv.org/abs/1909.08989v1","url_pdf":"https://arxiv.org/pdf/1909.08989v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"grid-anchor-based-image-cropping-a-new","repo_url":"https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"CPU"},{"task_slug":null,"task_name":"GPU"},{"task_slug":"image-cropping","task_name":"Image Cropping"}],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1909.08989","atlas_url":"https://app.syntology.ai/?focus=1909.08989","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1909.08989"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch","reach":null}],"summary":{"ran_honours":2,"ran_violates":2},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":1,"samples":[{"code_sha256_prefix":"6e846f4fe4da64f0","entry":"generate_bboxes","repo":"HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch","repo_kind":"official","path":"croppingDataset.py","file_url":"https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch/blob/HEAD/croppingDataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6e846f4fe4da64f0"}},{"code_sha256_prefix":"6d81941c1a3ae903","entry":"generate_bboxes_16_9","repo":"HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch","repo_kind":"official","path":"croppingDataset.py","file_url":"https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch/blob/HEAD/croppingDataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6d81941c1a3ae903"}},{"code_sha256_prefix":"20b793e0068074af","entry":"generate_bboxes_4_3","repo":"HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch","repo_kind":"official","path":"croppingDataset.py","file_url":"https://github.com/HuiZeng/Grid-Anchor-based-Image-Cropping-Pytorch/blob/HEAD/croppingDataset.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"20b793e0068074af"}},{"code_sha256_prefix":"25c7475539e39da4","entry":"str2bool","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"25c7475539e39da4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}