{"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/probabilistic-semantic-inpainting-with-pixel","title":"Probabilistic Semantic Inpainting with Pixel Constrained CNNs","arxiv_id":"1810.03728","date":"2018-10-08","proceeding":null,"authors":["Emilien Dupont","Suhas Suresha"],"abstract":"Semantic inpainting is the task of inferring missing pixels in an image given\nsurrounding pixels and high level image semantics. Most semantic inpainting\nalgorithms are deterministic: given an image with missing regions, a single\ninpainted image is generated. However, there are often several plausible\ninpaintings for a given missing region. In this paper, we propose a method to\nperform probabilistic semantic inpainting by building a model, based on\nPixelCNNs, that learns a distribution of images conditioned on a subset of\nvisible pixels. Experiments on the MNIST and CelebA datasets show that our\nmethod produces diverse and realistic inpaintings.","url_abs":"http://arxiv.org/abs/1810.03728v2","url_pdf":"http://arxiv.org/pdf/1810.03728v2.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":"probabilistic-semantic-inpainting-with-pixel","repo_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"probabilistic-semantic-inpainting-with-pixel","repo_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1810.03728","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1810.03728"}},"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/Schlumberger/pixel-constrained-cnn-tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":17},"by_repo_kind":{"official":{"samples":9,"ran":0,"repositories":1},"listed":{"samples":8,"ran":0,"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":"bd7ded41fdb9d6f2","entry":"batch_bottom_mask","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/masks.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/masks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bd7ded41fdb9d6f2"}},{"code_sha256_prefix":"0749efa682bbf5e3","entry":"batch_random_mask","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/masks.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/masks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0749efa682bbf5e3"}},{"code_sha256_prefix":"c6ff1e0234afa3e8","entry":"celeba","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/dataloaders.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/dataloaders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c6ff1e0234afa3e8"}},{"code_sha256_prefix":"692ba7c970642ea1","entry":"conv2d","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"ops.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/ops.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"692ba7c970642ea1"}},{"code_sha256_prefix":"188c807413333372","entry":"conv2d_rgb","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"ops.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/ops.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"188c807413333372"}},{"code_sha256_prefix":"db8bbedf244fa86b","entry":"gated_activation","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"pixconcnn/layers.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/pixconcnn/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"db8bbedf244fa86b"}},{"code_sha256_prefix":"110867cbdba69d7f","entry":"gated_conv2d","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"ops.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/ops.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"110867cbdba69d7f"}},{"code_sha256_prefix":"a9978772a779a115","entry":"get_quantize_func","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/dataloaders.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/dataloaders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a9978772a779a115"}},{"code_sha256_prefix":"db590024ffb27c99","entry":"im_preprocess","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"data.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"db590024ffb27c99"}},{"code_sha256_prefix":"64e22ccdcd340590","entry":"logits_2_pixel_value","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"utils.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"64e22ccdcd340590"}},{"code_sha256_prefix":"fbe62fbb934492ef","entry":"mnist","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/dataloaders.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/dataloaders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fbe62fbb934492ef"}},{"code_sha256_prefix":"7343109326aee6e9","entry":"probs_and_conditional_plot","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/plots.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/plots.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7343109326aee6e9"}},{"code_sha256_prefix":"e46abd08d5c38ce5","entry":"resize_func","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"data.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e46abd08d5c38ce5"}},{"code_sha256_prefix":"ba6501e4c03fe323","entry":"single_random_mask","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/masks.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/masks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ba6501e4c03fe323"}},{"code_sha256_prefix":"acab59426d12ad6d","entry":"single_random_mask","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"data.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"acab59426d12ad6d"}},{"code_sha256_prefix":"450372368e548e3b","entry":"softmax","repo":"Schlumberger/pixel-constrained-cnn-tf","repo_kind":"listed","path":"utils.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-tf/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"450372368e548e3b"}},{"code_sha256_prefix":"d2dfddb4930199f1","entry":"uncertainty_plot","repo":"Schlumberger/pixel-constrained-cnn-pytorch","repo_kind":"official","path":"utils/plots.py","file_url":"https://github.com/Schlumberger/pixel-constrained-cnn-pytorch/blob/HEAD/utils/plots.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d2dfddb4930199f1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}