yonishafir commited on
Commit
1b3cf5c
·
verified ·
1 Parent(s): ea8715f

Update README.md

Browse files

updated readme with necessary download files

Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -72,6 +72,26 @@ By submitting the form above, you agree to BRIA’s [Privacy policy](https://bri
72
 
73
  ### How To Use
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  ```python
76
  from diffusers import (
77
  AutoencoderKL,
@@ -199,5 +219,8 @@ gen_img = pipe(negative_prompt=default_negative_prompt, prompt=prompt,
199
  guidance_scale = 1.2,
200
  generator=generator).images[0]
201
 
 
 
 
202
  ```
203
 
 
72
 
73
  ### How To Use
74
 
75
+ ## Download
76
+ ```python
77
+ from huggingface_hub import hf_hub_download
78
+ import os
79
+
80
+ try:
81
+ local_dir = os.path.dirname(__file__)
82
+ except:
83
+ local_dir = '.'
84
+
85
+
86
+
87
+ hf_hub_download(repo_id="briaai/BRIA-2.3-ControlNet-Inpainting", filename='controlnet.py', local_dir=local_dir)
88
+ hf_hub_download(repo_id="briaai/BRIA-2.3-ControlNet-Inpainting", filename='config.json', local_dir=local_dir)
89
+ hf_hub_download(repo_id="briaai/BRIA-2.3-ControlNet-Inpainting", filename='image_processor.py', local_dir=local_dir)
90
+ hf_hub_download(repo_id="briaai/BRIA-2.3-ControlNet-Inpainting", filename='pipeline_controlnet_sd_xl.py', local_dir=local_dir)
91
+
92
+ ```
93
+
94
+ ## Run
95
  ```python
96
  from diffusers import (
97
  AutoencoderKL,
 
219
  guidance_scale = 1.2,
220
  generator=generator).images[0]
221
 
222
+
223
+ display(gen_img)
224
+
225
  ```
226