{"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/real-time-3d-aware-portrait-video-relighting-1","title":"Real-time 3D-aware Portrait Video Relighting","arxiv_id":"2410.18355","date":"2024-10-24","proceeding":"CVPR 2024 1","authors":["Ziqi Cai","Kaiwen Jiang","Shu-Yu Chen","Yu-Kun Lai","Hongbo Fu","Boxin Shi","Lin Gao"],"abstract":"Synthesizing realistic videos of talking faces under custom lighting conditions and viewing angles benefits various downstream applications like video conferencing. However, most existing relighting methods are either time-consuming or unable to adjust the viewpoints. In this paper, we present the first real-time 3D-aware method for relighting in-the-wild videos of talking faces based on Neural Radiance Fields (NeRF). Given an input portrait video, our method can synthesize talking faces under both novel views and novel lighting conditions with a photo-realistic and disentangled 3D representation. Specifically, we infer an albedo tri-plane, as well as a shading tri-plane based on a desired lighting condition for each video frame with fast dual-encoders. We also leverage a temporal consistency network to ensure smooth transitions and reduce flickering artifacts. Our method runs at 32.98 fps on consumer-level hardware and achieves state-of-the-art results in terms of reconstruction quality, lighting error, lighting instability, temporal consistency and inference speed. We demonstrate the effectiveness and interactivity of our method on various portrait videos with diverse lighting and viewing conditions.","url_abs":"https://arxiv.org/abs/2410.18355v1","url_pdf":"https://arxiv.org/pdf/2410.18355v1.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":"real-time-3d-aware-portrait-video-relighting-1","repo_url":"https://github.com/GhostCai/PortraitRelighting","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"nerf","task_name":"NeRF"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2410.18355","atlas_url":"https://app.syntology.ai/?focus=2410.18355","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.18355"}},"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/GhostCai/PortraitRelighting","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"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":"988dd1747b8bb07b","entry":"check_grad","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"utils.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/utils.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":"988dd1747b8bb07b"}},{"code_sha256_prefix":"ccdb2c434978bb29","entry":"pick_random_k_shs","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"networks/dataset.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/networks/dataset.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":"ccdb2c434978bb29"}},{"code_sha256_prefix":"e0dd99b25c11707e","entry":"pick_random_k_shs_deterministic","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"networks/dataset.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/networks/dataset.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":"e0dd99b25c11707e"}},{"code_sha256_prefix":"a79da13ed8bbff3f","entry":"preprocess_image","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"example.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/example.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":"a79da13ed8bbff3f"}},{"code_sha256_prefix":"7721eb3edf2c1e91","entry":"render_shading","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"utils.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/utils.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":"7721eb3edf2c1e91"}},{"code_sha256_prefix":"70ece934df8faee6","entry":"render_tensor","repo":"GhostCai/PortraitRelighting","repo_kind":"official","path":"utils.py","file_url":"https://github.com/GhostCai/PortraitRelighting/blob/HEAD/utils.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":"70ece934df8faee6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}