{"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/sem2nerf-converting-single-view-semantic","title":"Sem2NeRF: Converting Single-View Semantic Masks to Neural Radiance Fields","arxiv_id":"2203.10821","date":"2022-03-21","proceeding":null,"authors":["Yuedong Chen","Qianyi Wu","Chuanxia Zheng","Tat-Jen Cham","Jianfei Cai"],"abstract":"Image translation and manipulation have gain increasing attention along with the rapid development of deep generative models. Although existing approaches have brought impressive results, they mainly operated in 2D space. In light of recent advances in NeRF-based 3D-aware generative models, we introduce a new task, Semantic-to-NeRF translation, that aims to reconstruct a 3D scene modelled by NeRF, conditioned on one single-view semantic mask as input. To kick-off this novel task, we propose the Sem2NeRF framework. In particular, Sem2NeRF addresses the highly challenging task by encoding the semantic mask into the latent code that controls the 3D scene representation of a pre-trained decoder. To further improve the accuracy of the mapping, we integrate a new region-aware learning strategy into the design of both the encoder and the decoder. We verify the efficacy of the proposed Sem2NeRF and demonstrate that it outperforms several strong baselines on two benchmark datasets. Code and video are available at https://donydchen.github.io/sem2nerf/","url_abs":"https://arxiv.org/abs/2203.10821v2","url_pdf":"https://arxiv.org/pdf/2203.10821v2.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":"sem2nerf-converting-single-view-semantic","repo_url":"https://github.com/donydchen/sem2nerf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"3d-aware-image-synthesis","task_name":"3D-Aware Image Synthesis"},{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"nerf","task_name":"NeRF"},{"task_slug":"translation","task_name":"Translation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/3d-aware-image-synthesis-on-celebamask-hq","task":"3D-Aware Image Synthesis","dataset":"CelebAMask-HQ","model":"Sem2NeRF","rank_in_archive_order":1,"of":3,"metrics":{"FID":"41.52","IS":"2.03"},"uses_additional_data":false},{"leaderboard":"/sota/3d-aware-image-synthesis-on-celebamask-hq","task":"3D-Aware Image Synthesis","dataset":"CelebAMask-HQ","model":"pSp","rank_in_archive_order":2,"of":3,"metrics":{"FID":"55.56","IS":"1.74"},"uses_additional_data":false},{"leaderboard":"/sota/3d-aware-image-synthesis-on-celebamask-hq","task":"3D-Aware Image Synthesis","dataset":"CelebAMask-HQ","model":"pix2pixHD","rank_in_archive_order":3,"of":3,"metrics":{"FID":"67.32","IS":"1.72"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2203.10821","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.10821"}},"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/donydchen/sem2nerf","reach":null}],"summary":{"ran_draft_wrong":1,"ran":1,"unverified":2},"by_repo_kind":{"official":{"samples":4,"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":"e9947448743639ce","entry":"filt_ckpt_keys","repo":"donydchen/sem2nerf","repo_kind":"official","path":"models/sem2nerf.py","file_url":"https://github.com/donydchen/sem2nerf/blob/HEAD/models/sem2nerf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9947448743639ce"}},{"code_sha256_prefix":"53fb614b2441a458","entry":"get_keys","repo":"donydchen/sem2nerf","repo_kind":"official","path":"models/sem2nerf.py","file_url":"https://github.com/donydchen/sem2nerf/blob/HEAD/models/sem2nerf.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53fb614b2441a458"}},{"code_sha256_prefix":"582944e32e2fb957","entry":"Sem2NeRF","repo":"donydchen/sem2nerf","repo_kind":"official","path":"models/sem2nerf.py","file_url":"https://github.com/donydchen/sem2nerf/blob/HEAD/models/sem2nerf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"582944e32e2fb957"}},{"code_sha256_prefix":"25218039775cffd9","entry":"requires_grad","repo":"donydchen/sem2nerf","repo_kind":"official","path":"models/sem2nerf.py","file_url":"https://github.com/donydchen/sem2nerf/blob/HEAD/models/sem2nerf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"25218039775cffd9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}