Update README.md
Browse files
README.md
CHANGED
|
@@ -235,32 +235,32 @@ We present several examples to qualitatively compare the original qwen-image-edi
|
|
| 235 |
|
| 236 |
## Installation
|
| 237 |
|
| 238 |
-
|
| 239 |
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
-
|
|
|
|
|
|
|
| 243 |
|
| 244 |
-
|
|
|
|
| 245 |
|
| 246 |
-
|
| 247 |
|
| 248 |
-
```
|
| 249 |
-
|
| 250 |
-
cd DiffSynth-Studio
|
| 251 |
```
|
| 252 |
|
| 253 |
-
|
| 254 |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
|
|
|
| 258 |
|
| 259 |
-
|
| 260 |
|
| 261 |
-
```bash
|
| 262 |
-
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
|
| 263 |
-
```
|
| 264 |
|
| 265 |
## Usage
|
| 266 |
|
|
@@ -425,18 +425,6 @@ image = pipe(prompt, edit_image=input_image, num_inference_steps=10)
|
|
| 425 |
| `seed` | int | 0 | Random seed for reproducibility |
|
| 426 |
| `edit_image_auto_resize` | bool | True | Auto-resize input to match target area |
|
| 427 |
|
| 428 |
-
## Performance
|
| 429 |
-
|
| 430 |
-
- **Inference Speed**: ~2-3 seconds per image (40 steps, RTX 4090)
|
| 431 |
-
- **VRAM Usage**: ~6-8GB (bfloat16)
|
| 432 |
-
- **Recommended Steps**: 20-40 for optimal quality
|
| 433 |
-
|
| 434 |
-
## Limitations
|
| 435 |
-
|
| 436 |
-
- Works best with natural images and common objects
|
| 437 |
-
- May struggle with highly abstract or unusual concepts
|
| 438 |
-
- Quality depends on prompt clarity and specificity
|
| 439 |
-
- Very large images may require more VRAM
|
| 440 |
|
| 441 |
## Citation
|
| 442 |
|
|
|
|
| 235 |
|
| 236 |
## Installation
|
| 237 |
|
| 238 |
+
Install from source (recommended):
|
| 239 |
|
| 240 |
+
```
|
| 241 |
+
git clone https://github.com/modelscope/DiffSynth-Studio.git
|
| 242 |
+
cd DiffSynth-Studio
|
| 243 |
+
pip install -e .
|
| 244 |
+
```
|
| 245 |
|
| 246 |
+
<details>
|
| 247 |
+
<summary>Other installation methods</summary>
|
| 248 |
|
| 249 |
+
Install from PyPI (version updates may be delayed; for latest features, install from source)
|
| 250 |
|
| 251 |
+
```
|
| 252 |
+
pip install diffsynth
|
|
|
|
| 253 |
```
|
| 254 |
|
| 255 |
+
If you meet problems during installation, they might be caused by upstream dependencies. Please check the docs of these packages:
|
| 256 |
|
| 257 |
+
* [torch](https://pytorch.org/get-started/locally/)
|
| 258 |
+
* [sentencepiece](https://github.com/google/sentencepiece)
|
| 259 |
+
* [cmake](https://cmake.org)
|
| 260 |
+
* [cupy](https://docs.cupy.dev/en/stable/install.html)
|
| 261 |
|
| 262 |
+
</details>
|
| 263 |
|
|
|
|
|
|
|
|
|
|
| 264 |
|
| 265 |
## Usage
|
| 266 |
|
|
|
|
| 425 |
| `seed` | int | 0 | Random seed for reproducibility |
|
| 426 |
| `edit_image_auto_resize` | bool | True | Auto-resize input to match target area |
|
| 427 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 428 |
|
| 429 |
## Citation
|
| 430 |
|