Improve sample usage section with code snippets
#1
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -18,7 +18,19 @@ UP2You is a tuning-free framework for 3D human reconstruction from unconstrained
|
|
| 18 |
|
| 19 |
## Sample Usage
|
| 20 |
|
| 21 |
-
To run the inference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Citation
|
| 24 |
|
|
|
|
| 18 |
|
| 19 |
## Sample Usage
|
| 20 |
|
| 21 |
+
To run the inference pipeline with example images:
|
| 22 |
+
```bash
|
| 23 |
+
python inference_low_gpu.py \
|
| 24 |
+
--base_model_path stabilityai/stable-diffusion-2-1-base \
|
| 25 |
+
--segment_model_name briaai/RMBG-2.0 \
|
| 26 |
+
--data_dir examples \
|
| 27 |
+
--output_dir outputs \
|
| 28 |
+
```
|
| 29 |
+
Alternatively, you can use the provided shell script:
|
| 30 |
+
```bash
|
| 31 |
+
bash run.sh
|
| 32 |
+
```
|
| 33 |
+
`examples` is the folder containing your unconstrained photos, and `outputs` is the directory where the generated 3D reconstruction results will be saved.
|
| 34 |
|
| 35 |
## Citation
|
| 36 |
|