sukkritsharma commited on
Commit
a624610
1 Parent(s): 842b8e3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -1,4 +1,22 @@
1
  ---
2
  license: creativeml-openrail-m
3
  ---
4
- This is an inpainting model, which has been converted from the [realisticVisionV51_v51VAE-inpainting](https://civitai.com/models/4201?modelVersionId=130090).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: creativeml-openrail-m
3
  ---
4
+ This is an inpainting model, which has been converted from the [realisticVisionV51_v51VAE-inpainting](https://civitai.com/models/4201?modelVersionId=130090).
5
+
6
+ How to load the model :
7
+
8
+ ```python
9
+ model_id = "sukkritsharma/realisticVisionV51_v51VAE-inpainting-onnx-fp16"
10
+ pipe = OnnxStableDiffusionInpaintPipeline.from_pretrained(model_id,
11
+                                                              revision='fp16',
12
+                                                              provider="CUDAExecutionProvider",
13
+                                                             )
14
+ ```
15
+
16
+ How to run inference :
17
+ ```python
18
+ img = pipe(prompt=prompt,
19
+ image=init_image,
20
+ mask_image=mask_image,
21
+ num_inference_steps=30).images[0]
22
+ ```