Luffuly commited on
Commit
5e103a3
·
1 Parent(s): 52918a8

update readme

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -1,7 +1,13 @@
1
  # Unique3d-MVImage-Diffuser Model Card
2
 
3
- # Usage
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"test.png")
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