{"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/styleavatar-real-time-photo-realistic","title":"StyleAvatar: Real-time Photo-realistic Portrait Avatar from a Single Video","arxiv_id":"2305.00942","date":"2023-05-01","proceeding":null,"authors":["Lizhen Wang","Xiaochen Zhao","Jingxiang Sun","Yuxiang Zhang","Hongwen Zhang","Tao Yu","Yebin Liu"],"abstract":"Face reenactment methods attempt to restore and re-animate portrait videos as realistically as possible. Existing methods face a dilemma in quality versus controllability: 2D GAN-based methods achieve higher image quality but suffer in fine-grained control of facial attributes compared with 3D counterparts. In this work, we propose StyleAvatar, a real-time photo-realistic portrait avatar reconstruction method using StyleGAN-based networks, which can generate high-fidelity portrait avatars with faithful expression control. We expand the capabilities of StyleGAN by introducing a compositional representation and a sliding window augmentation method, which enable faster convergence and improve translation generalization. Specifically, we divide the portrait scenes into three parts for adaptive adjustments: facial region, non-facial foreground region, and the background. Besides, our network leverages the best of UNet, StyleGAN and time coding for video learning, which enables high-quality video generation. Furthermore, a sliding window augmentation method together with a pre-training strategy are proposed to improve translation generalization and training performance, respectively. The proposed network can converge within two hours while ensuring high image quality and a forward rendering time of only 20 milliseconds. Furthermore, we propose a real-time live system, which further pushes research into applications. Results and experiments demonstrate the superiority of our method in terms of image quality, full portrait video generation, and real-time re-animation compared to existing facial reenactment methods. Training and inference code for this paper are at https://github.com/LizhenWangT/StyleAvatar.","url_abs":"https://arxiv.org/abs/2305.00942v1","url_pdf":"https://arxiv.org/pdf/2305.00942v1.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":"styleavatar-real-time-photo-realistic","repo_url":"https://github.com/lizhenwangt/styleavatar","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"face-reenactment","task_name":"Face Reenactment"},{"task_slug":"translation","task_name":"Translation"},{"task_slug":"video-generation","task_name":"Video Generation"}],"methods":[{"method_slug":"adaptive-instance-normalization","method_name":"Adaptive Instance Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"feedforward-network","method_name":"Feedforward Network"},{"method_slug":"r1-regularization","method_name":"R1 Regularization"},{"method_slug":"stylegan","method_name":"StyleGAN"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2305.00942","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.00942"}},"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/lizhenwangt/styleavatar","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran_violates":1,"ran":2,"unverified":5},"by_repo_kind":{"official":{"samples":8,"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":0,"samples":[{"code_sha256_prefix":"6f65e378a4313f87","entry":"make_kernel","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/networks/modules.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/networks/modules.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6f65e378a4313f87"}},{"code_sha256_prefix":"3f0a1105ef251d78","entry":"reduce_sum","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/distributed.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/distributed.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0a1105ef251d78"}},{"code_sha256_prefix":"6f6832bdac56cd3b","entry":"upfirdn2d_native","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/torch_utils.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/torch_utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6f6832bdac56cd3b"}},{"code_sha256_prefix":"ed03ba54397adbe4","entry":"all_gather","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/distributed.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/distributed.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ed03ba54397adbe4"}},{"code_sha256_prefix":"9865a02804b0266f","entry":"get_haar_wavelet","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/networks/modules.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/networks/modules.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"9865a02804b0266f"}},{"code_sha256_prefix":"5144ad456049f8ce","entry":"reduce_loss_dict","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/distributed.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/distributed.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"5144ad456049f8ce"}},{"code_sha256_prefix":"7b8662a65ac43843","entry":"upfirdn2d","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/networks/modules_for_onnx.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/networks/modules_for_onnx.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"7b8662a65ac43843"}},{"code_sha256_prefix":"2267df57c8783eb2","entry":"upfirdn2d","repo":"lizhenwangt/styleavatar","repo_kind":"official","path":"styleavatar/torch_utils.py","file_url":"https://github.com/lizhenwangt/styleavatar/blob/HEAD/styleavatar/torch_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"2267df57c8783eb2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}