{"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/flatnet-towards-photorealistic-scene","title":"FlatNet: Towards Photorealistic Scene Reconstruction from Lensless Measurements","arxiv_id":"2010.15440","date":"2020-10-29","proceeding":null,"authors":["Salman S. Khan","Varun Sundar","Vivek Boominathan","Ashok Veeraraghavan","Kaushik Mitra"],"abstract":"Lensless imaging has emerged as a potential solution towards realizing ultra-miniature cameras by eschewing the bulky lens in a traditional camera. Without a focusing lens, the lensless cameras rely on computational algorithms to recover the scenes from multiplexed measurements. However, the current iterative-optimization-based reconstruction algorithms produce noisier and perceptually poorer images. In this work, we propose a non-iterative deep learning based reconstruction approach that results in orders of magnitude improvement in image quality for lensless reconstructions. Our approach, called $\\textit{FlatNet}$, lays down a framework for reconstructing high-quality photorealistic images from mask-based lensless cameras, where the camera's forward model formulation is known. FlatNet consists of two stages: (1) an inversion stage that maps the measurement into a space of intermediate reconstruction by learning parameters within the forward model formulation, and (2) a perceptual enhancement stage that improves the perceptual quality of this intermediate reconstruction. These stages are trained together in an end-to-end manner. We show high-quality reconstructions by performing extensive experiments on real and challenging scenes using two different types of lensless prototypes: one which uses a separable forward model and another, which uses a more general non-separable cropped-convolution model. Our end-to-end approach is fast, produces photorealistic reconstructions, and is easy to adopt for other mask-based lensless cameras.","url_abs":"https://arxiv.org/abs/2010.15440v1","url_pdf":"https://arxiv.org/pdf/2010.15440v1.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":"flatnet-towards-photorealistic-scene","repo_url":"https://github.com/siddiquesalman/flatnet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.15440","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.15440"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/siddiquesalman/flatnet","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"summary":{"ran_draft_wrong":2,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":2,"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":0,"samples":[{"code_sha256_prefix":"0f786c407fb1ee4c","entry":"swish","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"models.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/models.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"0f786c407fb1ee4c"}},{"code_sha256_prefix":"18fbe72ffac82ee3","entry":"conv3x3","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"models.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/models.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"18fbe72ffac82ee3"}},{"code_sha256_prefix":"cfca12b302e6acd4","entry":"demosaic_raw","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"cfca12b302e6acd4"}},{"code_sha256_prefix":"092bdc7ef99f8af5","entry":"dilconv3x3","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"models.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"092bdc7ef99f8af5"}},{"code_sha256_prefix":"bbf2af5cbb114ceb","entry":"get_paths","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"bbf2af5cbb114ceb"}},{"code_sha256_prefix":"85d17c4f26c7e361","entry":"train_discriminator_epoch","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"fns_all.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/fns_all.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"85d17c4f26c7e361"}},{"code_sha256_prefix":"a3ee7418e1672b76","entry":"train_full_epoch","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"fns_all.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/fns_all.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a3ee7418e1672b76"}},{"code_sha256_prefix":"b3cfd3681d483110","entry":"validate","repo":"siddiquesalman/flatnet","repo_kind":"official","path":"fns_all.py","file_url":"https://github.com/siddiquesalman/flatnet/blob/HEAD/fns_all.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b3cfd3681d483110"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}