update readme
Browse files
README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
# Unique3d-MVImage-Diffuser Model Card
|
| 2 |
|
| 3 |
-
|
| 4 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
pipe = StableDiffusionImage2MVCustomPipeline.from_pretrained(
|
| 6 |
"Luffuly/unique3d-mv-variation-diffuser",
|
| 7 |
torch_dtype=torch.float16,
|
|
@@ -23,7 +29,7 @@ forward_args = dict(
|
|
| 23 |
|
| 24 |
out = pipe(image, **forward_args).images
|
| 25 |
rgb_np = np.hstack([np.array(img) for img in out])
|
| 26 |
-
Image.fromarray(rgb_np).save(f"
|
| 27 |
```
|
| 28 |
|
| 29 |
## Image-to-Normal
|
|
|
|
| 1 |
# Unique3d-MVImage-Diffuser Model Card
|
| 2 |
|
| 3 |
+
## Example
|
| 4 |
```bash
|
| 5 |
+
import torch
|
| 6 |
+
import numpy as np
|
| 7 |
+
from PIL import Image
|
| 8 |
+
from pipeline_img2mvimg import StableDiffusionImage2MVCustomPipeline
|
| 9 |
+
|
| 10 |
+
|
| 11 |
pipe = StableDiffusionImage2MVCustomPipeline.from_pretrained(
|
| 12 |
"Luffuly/unique3d-mv-variation-diffuser",
|
| 13 |
torch_dtype=torch.float16,
|
|
|
|
| 29 |
|
| 30 |
out = pipe(image, **forward_args).images
|
| 31 |
rgb_np = np.hstack([np.array(img) for img in out])
|
| 32 |
+
Image.fromarray(rgb_np).save(f"mvimg.png")
|
| 33 |
```
|
| 34 |
|
| 35 |
## Image-to-Normal
|