{"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/color2style-real-time-exemplar-based-image","title":"Color2Embed: Fast Exemplar-Based Image Colorization using Color Embeddings","arxiv_id":"2106.08017","date":"2021-06-15","proceeding":null,"authors":["Hengyuan Zhao","Wenhao Wu","Yihao Liu","Dongliang He"],"abstract":"In this paper, we present a fast exemplar-based image colorization approach using color embeddings named Color2Embed. Generally, due to the difficulty of obtaining input and ground truth image pairs, it is hard to train a exemplar-based colorization model with unsupervised and unpaired training manner. Current algorithms usually strive to achieve two procedures: i) retrieving a large number of reference images with high similarity for preparing training dataset, which is inevitably time-consuming and tedious; ii) designing complicated modules to transfer the colors of the reference image to the target image, by calculating and leveraging the deep semantic correspondence between them (e.g., non-local operation), which is computationally expensive during testing. Contrary to the previous methods, we adopt a self-augmented self-reference learning scheme, where the reference image is generated by graphical transformations from the original colorful one whereby the training can be formulated in a paired manner. Second, in order to reduce the process time, our method explicitly extracts the color embeddings and exploits a progressive style feature Transformation network, which injects the color embeddings into the reconstruction of the final image. Such design is much more lightweight and intelligible, achieving appealing performance with fast processing speed.","url_abs":"https://arxiv.org/abs/2106.08017v3","url_pdf":"https://arxiv.org/pdf/2106.08017v3.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":"color2style-real-time-exemplar-based-image","repo_url":"https://github.com/zhaohengyuan1/Color2Style","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"color2style-real-time-exemplar-based-image","repo_url":"https://github.com/Kwentar/Color2Embed_pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"color2style-real-time-exemplar-based-image","repo_url":"https://github.com/zhaohengyuan1/Color2Embed","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"colorization","task_name":"Colorization"},{"task_slug":"image-colorization","task_name":"Image Colorization"},{"task_slug":"semantic-correspondence","task_name":"Semantic correspondence"}],"methods":[{"method_slug":"colorization","method_name":"Colorization"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.08017","atlas_url":"https://app.syntology.ai/?focus=2106.08017","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.08017"}},"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/zhaohengyuan1/Color2Style","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhaohengyuan1/Color2Embed","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Kwentar/Color2Embed_pytorch","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran":4,"unverified":4},"by_repo_kind":{"official":{"samples":5,"ran":1,"repositories":1},"listed":{"samples":4,"ran":4,"repositories":2}},"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":"05f82634be7c9cea","entry":"Normalize","repo":"zhaohengyuan1/Color2Embed","repo_kind":"listed","path":"test_gray2color.py","file_url":"https://github.com/zhaohengyuan1/Color2Embed/blob/HEAD/test_gray2color.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05f82634be7c9cea"}},{"code_sha256_prefix":"3f0a1105ef251d78","entry":"reduce_sum","repo":"zhaohengyuan1/Color2Style","repo_kind":"official","path":"distributed.py","file_url":"https://github.com/zhaohengyuan1/Color2Style/blob/HEAD/distributed.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0a1105ef251d78"}},{"code_sha256_prefix":"99d05a399a1d204a","entry":"tps_grid","repo":"Kwentar/Color2Embed_pytorch","repo_kind":"listed","path":"color2embed/tsp.py","file_url":"https://github.com/Kwentar/Color2Embed_pytorch/blob/HEAD/color2embed/tsp.py","link_basis":"harvester_set","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":"99d05a399a1d204a"}},{"code_sha256_prefix":"a4f38b2edc63db94","entry":"tps_theta_from_points","repo":"Kwentar/Color2Embed_pytorch","repo_kind":"listed","path":"color2embed/tsp.py","file_url":"https://github.com/Kwentar/Color2Embed_pytorch/blob/HEAD/color2embed/tsp.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a4f38b2edc63db94"}},{"code_sha256_prefix":"eb1a80c108feaed5","entry":"uniform_grid","repo":"Kwentar/Color2Embed_pytorch","repo_kind":"listed","path":"color2embed/tsp.py","file_url":"https://github.com/Kwentar/Color2Embed_pytorch/blob/HEAD/color2embed/tsp.py","link_basis":"harvester_set","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":"eb1a80c108feaed5"}},{"code_sha256_prefix":"ed03ba54397adbe4","entry":"all_gather","repo":"zhaohengyuan1/Color2Style","repo_kind":"official","path":"distributed.py","file_url":"https://github.com/zhaohengyuan1/Color2Style/blob/HEAD/distributed.py","link_basis":"harvester_set","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":"ed03ba54397adbe4"}},{"code_sha256_prefix":"5144ad456049f8ce","entry":"reduce_loss_dict","repo":"zhaohengyuan1/Color2Style","repo_kind":"official","path":"distributed.py","file_url":"https://github.com/zhaohengyuan1/Color2Style/blob/HEAD/distributed.py","link_basis":"harvester_set","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":"5144ad456049f8ce"}},{"code_sha256_prefix":"d4e8c9373bf2503b","entry":"tensor_lab2rgb","repo":"zhaohengyuan1/Color2Style","repo_kind":"official","path":"utils.py","file_url":"https://github.com/zhaohengyuan1/Color2Style/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4e8c9373bf2503b"}},{"code_sha256_prefix":"034d7b16002df5b6","entry":"vgg_preprocess","repo":"zhaohengyuan1/Color2Style","repo_kind":"official","path":"vgg_model.py","file_url":"https://github.com/zhaohengyuan1/Color2Style/blob/HEAD/vgg_model.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":"034d7b16002df5b6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}