{"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/pixwizard-versatile-image-to-image-visual","title":"PixWizard: Versatile Image-to-Image Visual Assistant with Open-Language Instructions","arxiv_id":"2409.15278","date":"2024-09-23","proceeding":null,"authors":["Weifeng Lin","Xinyu Wei","Renrui Zhang","Le Zhuo","Shitian Zhao","Siyuan Huang","Junlin Xie","Yu Qiao","Peng Gao","Hongsheng Li"],"abstract":"This paper presents a versatile image-to-image visual assistant, PixWizard, designed for image generation, manipulation, and translation based on free-from language instructions. To this end, we tackle a variety of vision tasks into a unified image-text-to-image generation framework and curate an Omni Pixel-to-Pixel Instruction-Tuning Dataset. By constructing detailed instruction templates in natural language, we comprehensively include a large set of diverse vision tasks such as text-to-image generation, image restoration, image grounding, dense image prediction, image editing, controllable generation, inpainting/outpainting, and more. Furthermore, we adopt Diffusion Transformers (DiT) as our foundation model and extend its capabilities with a flexible any resolution mechanism, enabling the model to dynamically process images based on the aspect ratio of the input, closely aligning with human perceptual processes. The model also incorporates structure-aware and semantic-aware guidance to facilitate effective fusion of information from the input image. Our experiments demonstrate that PixWizard not only shows impressive generative and understanding abilities for images with diverse resolutions but also exhibits promising generalization capabilities with unseen tasks and human instructions. The code and related resources are available at https://github.com/AFeng-x/PixWizard","url_abs":"https://arxiv.org/abs/2409.15278v2","url_pdf":"https://arxiv.org/pdf/2409.15278v2.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":"pixwizard-versatile-image-to-image-visual","repo_url":"https://github.com/afeng-x/pixwizard","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"image-restoration","task_name":"Image Restoration"},{"task_slug":"text-to-image-generation-1","task_name":"Text to Image Generation"},{"task_slug":"text-to-image-generation","task_name":"Text-to-Image Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.15278","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.15278"}},"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/afeng-x/pixwizard","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":9,"ran_draft_wrong":4,"ran_violates":2,"unverified":2},"by_repo_kind":{"official":{"samples":17,"ran":15,"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":"49688b7f4b1c6d3d","entry":"MultiHot_Gumbel_Softmax","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/model.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":"49688b7f4b1c6d3d"}},{"code_sha256_prefix":"2a92f0d95dce3ea2","entry":"add_options","repo":"afeng-x/pixwizard","repo_kind":"official","path":"entry_point.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/entry_point.py","link_basis":"plan_row","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":"2a92f0d95dce3ea2"}},{"code_sha256_prefix":"fe5dd5258046898c","entry":"always","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/x_transformer.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/x_transformer.py","link_basis":"harvester_set","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":"fe5dd5258046898c"}},{"code_sha256_prefix":"ed9eb205e6768a44","entry":"center_crop","repo":"afeng-x/pixwizard","repo_kind":"official","path":"imgproc.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/imgproc.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":"ed9eb205e6768a44"}},{"code_sha256_prefix":"ea73360d2d5d9224","entry":"center_crop_arr","repo":"afeng-x/pixwizard","repo_kind":"official","path":"imgproc.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/imgproc.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea73360d2d5d9224"}},{"code_sha256_prefix":"424012cb37b31172","entry":"default","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/x_transformer.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/x_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"424012cb37b31172"}},{"code_sha256_prefix":"a36c1723b0978202","entry":"encode_prompt","repo":"afeng-x/pixwizard","repo_kind":"official","path":"sample_pixwizard.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/sample_pixwizard.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":"a36c1723b0978202"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/x_transformer.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/x_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"1c00a422b396fa8b","entry":"expand_t_like_x","repo":"afeng-x/pixwizard","repo_kind":"official","path":"transport/path.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/transport/path.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":"1c00a422b396fa8b"}},{"code_sha256_prefix":"6bcc66e5235c74ae","entry":"find_closest_size","repo":"afeng-x/pixwizard","repo_kind":"official","path":"sample_pixwizard.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/sample_pixwizard.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":"6bcc66e5235c74ae"}},{"code_sha256_prefix":"b1368330cf0f5642","entry":"isimage","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/util.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/util.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":"b1368330cf0f5642"}},{"code_sha256_prefix":"d72762b700feee6f","entry":"ismap","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/util.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/util.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":"d72762b700feee6f"}},{"code_sha256_prefix":"128eb60a7316f121","entry":"modulate","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/model.py","link_basis":"first_harvest_node","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":"128eb60a7316f121"}},{"code_sha256_prefix":"7318f2abbfa63f83","entry":"var_center_crop","repo":"afeng-x/pixwizard","repo_kind":"official","path":"imgproc.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/imgproc.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":"7318f2abbfa63f83"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/modules.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/modules.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"129b804760b3115f"}},{"code_sha256_prefix":"f9bd2e83191afad1","entry":"log_txt_as_img","repo":"afeng-x/pixwizard","repo_kind":"official","path":"models/clip/util.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/models/clip/util.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":"f9bd2e83191afad1"}},{"code_sha256_prefix":"2fc6fdb85f13dc41","entry":"none_or_str","repo":"afeng-x/pixwizard","repo_kind":"official","path":"sample_pixwizard.py","file_url":"https://github.com/afeng-x/pixwizard/blob/HEAD/sample_pixwizard.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":"2fc6fdb85f13dc41"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}