Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -70,19 +70,6 @@ pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
|
|
| 70 |
pip install -r requirements.txt
|
| 71 |
```
|
| 72 |
|
| 73 |
-
### 📥 Checkpoints Download
|
| 74 |
-
You can download the `.safetensors` weights (e.g., `dit_lora.safetensors`) using `huggingface-cli`:
|
| 75 |
-
|
| 76 |
-
```bash
|
| 77 |
-
pip install huggingface_hub
|
| 78 |
-
|
| 79 |
-
# Replace [YOUR_REPO] with your actual Hugging Face repository path
|
| 80 |
-
repo_name="ScottHan/PositionIC"
|
| 81 |
-
local_dir="models/"$repo_name
|
| 82 |
-
|
| 83 |
-
huggingface-cli download $repo_name --local-dir $local_dir
|
| 84 |
-
```
|
| 85 |
-
|
| 86 |
---
|
| 87 |
|
| 88 |
## ✍️ Inference
|
|
@@ -91,7 +78,7 @@ To generate images with precise position and identity control, run the following
|
|
| 91 |
```bash
|
| 92 |
python inference_.py \
|
| 93 |
--eval_json_path "path/to/your/val_config.json" \
|
| 94 |
-
--dit_lora_path "
|
| 95 |
--saved_dir "./res" \
|
| 96 |
--width 1024 \
|
| 97 |
--height 1024 \
|
|
|
|
| 70 |
pip install -r requirements.txt
|
| 71 |
```
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
---
|
| 74 |
|
| 75 |
## ✍️ Inference
|
|
|
|
| 78 |
```bash
|
| 79 |
python inference_.py \
|
| 80 |
--eval_json_path "path/to/your/val_config.json" \
|
| 81 |
+
--dit_lora_path "ScottHan/PositionIC" \
|
| 82 |
--saved_dir "./res" \
|
| 83 |
--width 1024 \
|
| 84 |
--height 1024 \
|