Update README.md
Browse files
README.md
CHANGED
|
@@ -40,17 +40,35 @@ It is distilled from **UniPic-3** to support **fast inference (≤8 steps)** whi
|
|
| 40 |
## 🧠 Usage
|
| 41 |
|
| 42 |
### 1. Clone the Repository
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
### 2. Set Up the Environment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
### 3.Batch Inference
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
## 📄 License
|
| 53 |
-
|
| 54 |
This model is released under the MIT License.
|
| 55 |
|
| 56 |
## Citation
|
|
|
|
| 40 |
## 🧠 Usage
|
| 41 |
|
| 42 |
### 1. Clone the Repository
|
| 43 |
+
```bash
|
| 44 |
+
git clone https://github.com/SkyworkAI/UniPic
|
| 45 |
+
cd UniPic-2
|
| 46 |
+
```
|
| 47 |
|
| 48 |
### 2. Set Up the Environment
|
| 49 |
+
```bash
|
| 50 |
+
conda create -n unipic python=3.10
|
| 51 |
+
conda activate unipic3
|
| 52 |
+
pip install -r requirements.txt
|
| 53 |
+
```
|
| 54 |
|
| 55 |
|
| 56 |
### 3.Batch Inference
|
| 57 |
+
```bash
|
| 58 |
+
transformer_path = "Skywork/Unipic3-Consistency-Model/ema_transformer"
|
| 59 |
+
|
| 60 |
+
python -m torch.distributed.launch --nproc_per_node=1 --master_port 29501 --use_env \
|
| 61 |
+
qwen_image_edit_fast/batch_inference.py \
|
| 62 |
+
--jsonl_path data/val.jsonl \
|
| 63 |
+
--output_dir work_dirs/output \
|
| 64 |
+
--distributed \
|
| 65 |
+
--num_inference_steps 4 \
|
| 66 |
+
--true_cfg_scale 4.0 \
|
| 67 |
+
--transformer transformer_path \
|
| 68 |
+
--skip_existing
|
| 69 |
+
```
|
| 70 |
|
| 71 |
## 📄 License
|
|
|
|
| 72 |
This model is released under the MIT License.
|
| 73 |
|
| 74 |
## Citation
|