katelyn2333 commited on
Commit
36e09a9
Β·
verified Β·
1 Parent(s): 8910e3c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +109 -3
README.md CHANGED
@@ -1,3 +1,109 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <div align=center>
3
+ <img src="assets/logo.png" width="150px">
4
+ </div>
5
+ <h2 align="center">
6
+ SmartPhotoCrafter: Unified Reasoning, Generation and Optimization for Automatic Photographic Image Editing
7
+ </h2>
8
+
9
+
10
+ <a href="https://arxiv.org/abs/2604.19587"><img src='https://img.shields.io/badge/arXiv-2501.11325-red?style=flat&logo=arXiv&logoColor=red' alt='arxiv'></a>&nbsp;
11
+ <a href="https://vivocameraresearch.github.io/smartphotocrafterweb"><img src='https://img.shields.io/badge/Project-Page-Green' alt='Project'></a>&nbsp;
12
+ <a href="https://huggingface.co/papers/2604.19587"><img src='https://img.shields.io/badge/πŸ€—-HuggingFace-blue' alt='HuggingFace'></a>&nbsp;
13
+ <a href=""><img src='https://img.shields.io/badge/πŸ€–-ModelScope-purple' alt='ModelScope'></a>&nbsp;
14
+ <a href="http://www.apache.org/licenses/LICENSE-2.0"><img src='https://img.shields.io/badge/License-CC BY--NC--SA--4.0-lightgreen?style=flat&logo=Lisence' alt='License'></a>&nbsp;
15
+
16
+ **SmartPhotoCrafter** is an end-to-end framework for automatic photographic image editing that reformulates traditional editing as a closed-loop reasoning-to-generation process. Unlike prior methods that rely on explicit user instructions, our approach autonomously identifies aesthetic deficiencies, reasons about improvement strategies, and performs targeted edits without human prompts.
17
+
18
+
19
+ ## ✨ Highlights
20
+ - **Fully Automatic Editing** – No user instructions or parameters required; the model completes the closed loop of quality assessment β†’ reasoning β†’ editing autonomously.
21
+ - **Dual Capability** – Supports both **image restoration** (denoising, deblurring, low-light enhancement) and **image retouching** (color, tone, contrast enhancement).
22
+ - **Aesthetic Reasoning** – Explicitly generates image quality analysis and editing suggestions, improving interpretability.
23
+ - **High-Fidelity Generation** – Preserves original content structure while delivering photo-realistic outputs with high tonal/color semantic sensitivity.
24
+ - **Reinforcement Learning Optimization** – Jointly optimizes reasoning and generation modules, aligning editing trajectories with human aesthetic preferences.
25
+
26
+ ## πŸ–ΌοΈ Demo
27
+ ![teaser](./assets/teaser.png)
28
+
29
+ ## πŸ–ΌοΈ Demo Video
30
+ <a href="https://www.youtube.com/watch?v=2p3t1ju_CxA" target="_blank">
31
+ <img src="https://github.com/vivoCameraResearch/SmartPhotoCrafter/blob/9d48c1684b424d540d3e3686659d62b2fb4c2a61/assets/thumbnail.jpg" alt="SmartPhotoCrafter" width="760" height="450">
32
+ </a>
33
+
34
+
35
+ ## πŸ“£ News
36
+ - **`2026/04/07`**: We open-source the inference scripts.
37
+ - **`2026/04/22`**: Our [Paper on ArXiv](https://arxiv.org/abs/2604.19587) is available!
38
+
39
+ ## βœ… To-Do List for SmartPhotoCrafter Release
40
+ - βœ… Release the inference code of SmartPhotoCrafter
41
+ - [ ] Release the SmartPhotoCrafter pretrained weights
42
+
43
+
44
+
45
+
46
+ ## Requirements and Installation
47
+
48
+ ### Prepare Environment
49
+ Create a conda environment & install requirements
50
+ ```shell
51
+ # python==3.10.0 cuda==12.4 torch==2.5
52
+ conda create -n smartphotocrafter python==3.10.0
53
+ conda activate smartphotocrafter
54
+ pip install -r requirements.txt
55
+ ```
56
+
57
+ ### πŸ“¦ Pretrained Model Weights
58
+ | Models | Download | Features |
59
+ |------------------|---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
60
+ | SmartPhotoCrafter | πŸ€— [Huggingface]() πŸ€– [ModelScope]() |
61
+ Qwen-Image-Edit-2509 | πŸ€— [Huggingface](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) πŸ€– [ModelScope](https://www.modelscope.cn/models/Qwen/Qwen-Image-Edit-2509) | Base Model |
62
+
63
+
64
+ ## πŸ˜‰ Demo Inference
65
+ We provide scripts for both automatic and manual editing. Automatic editing only requires inputting one image, while manual editing requires adding a prompt.
66
+
67
+ Automatically edit reasoning scripts
68
+ ```PowerShell
69
+ bash scripts/inference/automatic-edit.sh
70
+ ```
71
+
72
+ Manual edit reasoning scripts
73
+ ```PowerShell
74
+ bash scripts/inference/manual-eidt.sh
75
+ ```
76
+
77
+ Script example
78
+ ```PowerShell
79
+ CUDA_VISIBLE_DEVICES=0 python infer.py \
80
+ --model_path "ckpt/Qwen-Image-Edit-2509" \
81
+ --dit_path "ckpt/DiT.safetensors" \
82
+ --vlm_path "ckpt/text_encoder" \
83
+ --image_path "example/841012.png" \
84
+ --output_folder "example/output/automatic" \
85
+ --seed 42 \
86
+ ```
87
+
88
+
89
+ ## πŸš€ Training
90
+ Coming Soon ...
91
+
92
+ ## ⭐ Acknowledgement
93
+ Our code is modified based on [Edit-R1](https://github.com/PKU-YuanGroup/Edit-R1). We adopt [Qwen-Image-Edit-2509](https://github.com/QwenLM/Qwen-Image) as the base model.
94
+
95
+ ## πŸ“œ License
96
+ All the materials, including code, checkpoints, and demos, are made available under the [Creative Commons BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license. You are free to copy, redistribute, remix, transform, and build upon the project for non-commercial purposes, as long as you give appropriate credit and distribute your contributions under the same license.
97
+
98
+
99
+ ## πŸŽ“ Citation
100
+
101
+ ```
102
+ @article{zeng2026smartphotocrafter,
103
+ title={SmartPhotoCrafter: Unified Reasoning, Generation and Optimization for Automatic Photographic Image Editing},
104
+ author={Zeng, Ying and Luo, Miaosen and Li, Guangyuan and Yang, Yang and Fan, Ruiyang and Shi, Linxiao and Yang, Qirui and Zhang, Jian and Liu, Chengcheng and Zheng, Siming and others},
105
+ journal={arXiv preprint arXiv:2604.19587},
106
+ year={2026}
107
+ }
108
+
109
+ ```