{"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/image2stylegan-how-to-embed-images-into-the","title":"Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?","arxiv_id":"1904.03189","date":"2019-04-05","proceeding":"ICCV 2019 10","authors":["Rameen Abdal","Yipeng Qin","Peter Wonka"],"abstract":"We propose an efficient algorithm to embed a given image into the latent space of StyleGAN. This embedding enables semantic image editing operations that can be applied to existing photographs. Taking the StyleGAN trained on the FFHQ dataset as an example, we show results for image morphing, style transfer, and expression transfer. Studying the results of the embedding algorithm provides valuable insights into the structure of the StyleGAN latent space. We propose a set of experiments to test what class of images can be embedded, how they are embedded, what latent space is suitable for embedding, and if the embedding is semantically meaningful.","url_abs":"https://arxiv.org/abs/1904.03189v2","url_pdf":"https://arxiv.org/pdf/1904.03189v2.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":"image2stylegan-how-to-embed-images-into-the","repo_url":"https://github.com/ee17b031-iittp/Image2StyleGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"image2stylegan-how-to-embed-images-into-the","repo_url":"https://github.com/pacifinapacific/StyleGAN_LatentEditor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"image2stylegan-how-to-embed-images-into-the","repo_url":"https://github.com/woctezuma/stylegan2-projecting-images","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"image2stylegan-how-to-embed-images-into-the","repo_url":"https://github.com/yuval-alaluf/hyperstyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"image2stylegan-how-to-embed-images-into-the","repo_url":"https://github.com/syguan96/Image2StyleGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"image-morphing","task_name":"Image Morphing"},{"task_slug":"style-transfer","task_name":"Style Transfer"}],"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":"https://syntology.ai/paper/1904.03189","atlas_url":"https://app.syntology.ai/?focus=1904.03189","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1904.03189"}},"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/yuval-alaluf/hyperstyle","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/syguan96/Image2StyleGAN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pacifinapacific/StyleGAN_LatentEditor","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/woctezuma/stylegan2-projecting-images","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ee17b031-iittp/Image2StyleGAN","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1},"by_repo_kind":{"listed":{"samples":1,"ran":1,"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":1,"samples":[{"code_sha256_prefix":"857d5727c4c8cddc","entry":"caluclate_loss","repo":"pacifinapacific/StyleGAN_LatentEditor","repo_kind":"listed","path":"encode_image.py","file_url":"https://github.com/pacifinapacific/StyleGAN_LatentEditor/blob/HEAD/encode_image.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"857d5727c4c8cddc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}