{"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/arxiv-2508-06033","title":"InstantEdit: Text-Guided Few-Step Image Editing with Piecewise Rectified Flow","arxiv_id":"2508.06033","date":"2025-08-08","proceeding":"ICCV","authors":["Yiming Gong","Zhen Zhu","Minjia Zhang"],"abstract":"We propose a fast text-guided image editing method called InstantEdit based on the RectifiedFlow framework, which is structured as a few-step editing process that preserves critical content while following closely to textual instructions. Our approach leverages the straight sampling trajectories of RectifiedFlow by introducing a specialized inversion strategy called PerRFI. To maintain consistent while editable results for RectifiedFlow model, we further propose a novel regeneration method, Inversion Latent Injection, which effectively reuses latent information obtained during inversion to facilitate more coherent and detailed regeneration. Additionally, we propose a Disentangled Prompt Guidance technique to balance editability with detail preservation, and integrate a Canny-conditioned ControlNet to incorporate structural cues and suppress artifacts. Evaluation on the PIE image editing dataset demonstrates that InstantEdit is not only fast but also achieves better qualitative and quantitative results compared to state-of-the-art few-step editing methods.","url_abs":"https://arxiv.org/abs/2508.06033","url_pdf":"https://arxiv.org/pdf/2508.06033","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2508.06033","atlas_url":"https://app.syntology.ai/?focus=2508.06033","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2508.06033"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit","reach":{"status":"ok"}}],"summary":{"ran_honours":2,"ran_draft_wrong":1,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":11,"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":11,"samples":[{"code_sha256_prefix":"f1e3f7493aad4745","entry":"betas_for_alpha_bar","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"src/scheduler_perflow.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/src/scheduler_perflow.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f1e3f7493aad4745"}},{"code_sha256_prefix":"90914e1d22798d8a","entry":"get_word_inds","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/ptp_utils.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/ptp_utils.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"90914e1d22798d8a"}},{"code_sha256_prefix":"3338a5b299ea25ec","entry":"retrieve_timesteps","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"src/pipeline.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/src/pipeline.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3338a5b299ea25ec"}},{"code_sha256_prefix":"608cb84fa52efd4c","entry":"calculate_metric","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"pie_evaluator/evaluate.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/pie_evaluator/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"608cb84fa52efd4c"}},{"code_sha256_prefix":"d167441d997c52ce","entry":"get_matrix","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/seq_aligner.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/seq_aligner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d167441d997c52ce"}},{"code_sha256_prefix":"81db21bf982ca0fe","entry":"get_matrix","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/seq_aligner.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/seq_aligner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"81db21bf982ca0fe"}},{"code_sha256_prefix":"beb8f6a30678a4d9","entry":"get_traceback_matrix","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/seq_aligner.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/seq_aligner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"beb8f6a30678a4d9"}},{"code_sha256_prefix":"169aabcc919f06d9","entry":"register_attention_control","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/ptp_utils.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/ptp_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"169aabcc919f06d9"}},{"code_sha256_prefix":"d71bb2e5331b74e2","entry":"retrieve_latents","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"src/sd_inversion_pipeline.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/src/sd_inversion_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d71bb2e5331b74e2"}},{"code_sha256_prefix":"3fa3967a4213827d","entry":"rle2mask","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"instantedit.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/instantedit.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3fa3967a4213827d"}},{"code_sha256_prefix":"5d75f6c0e6788bf7","entry":"update_alpha_time_word","repo":"Supercomputing-System-AI-Lab/InstantEdit","repo_kind":"found_in_text","path":"utils_/ptp_utils.py","file_url":"https://github.com/Supercomputing-System-AI-Lab/InstantEdit/blob/HEAD/utils_/ptp_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d75f6c0e6788bf7"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_api"},"syntology_extracted_results":null}