Update README.md
Browse files
README.md
CHANGED
@@ -1,26 +1,30 @@
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
3 |
---
|
4 |
-
<h1 class="relative group flex items-center">
|
5 |
<span>
|
6 |
Diffusers
|
7 |
</span>
|
8 |
</h1>
|
9 |
<p>This model can be used just like any other Stable Diffusion model. For more information, please have a look at the <a target="_blank" href="https://huggingface.co/docs/diffusers/v0.28.2/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline"> Stable Diffusion XL </a>.</p>
|
10 |
|
11 |
-
<div class="relative group repo-copy-code"><pre
|
12 |
-
<span class="hljs-keyword">import</span>
|
|
|
13 |
|
14 |
-
model_path = <span class="hljs-string">"https://huggingface.co/aiscilabs/RealisticProXL_V0.1.0_alpha/blob/main/RealisticProXL_aqheodd_0.1.safetensors"</span>
|
15 |
-
pipe = StableDiffusionXLPipeline.from_single_file(model_path)
|
16 |
-
pipe = pipe.to(<span class="hljs-string">"cuda"</span>)
|
17 |
|
18 |
-
prompt = <span class="hljs-string">"YOUR PROMPT"</span>
|
19 |
-
image = pipe(prompt).images[<span class="hljs-number">0</span>]
|
20 |
|
21 |
-
image.save(<span class="hljs-string">"image.png"</span>)
|
22 |
-
</code></pre
|
|
|
23 |
|
|
|
|
|
24 |
<h1>Overview</h1>
|
25 |
|
26 |
***Foundation***
|
@@ -65,7 +69,7 @@ This high-resolution capability allows for richly detailed and lifelike images.
|
|
65 |
|
66 |
For better results ,a model token needs to be included : **aqheodd**
|
67 |
|
68 |
-
<h3 style="color:gray;margin-top:40px"> Diffuser model for this SD checkpoint on CIVITAI:</h3>
|
69 |
<p><a target="_blank" href="https://civitai.com/models/492985/realisticmodelproxlaqheodd">https://civitai.com/models/492985/realisticmodelproxlaqheodd</a> </p>
|
70 |
<h1 style="color:gray;margin-top:40px">Samples:</h1>
|
71 |
<table border="1" width="100%">
|
@@ -93,4 +97,4 @@ For better results ,a model token needs to be included : **aqheodd**
|
|
93 |
<img src="https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/20771f05-cfb7-4973-9222-7fd327b00214/width=450/2024-06-03_15-44-39_7104.jpeg"/>
|
94 |
</td>
|
95 |
</tr>
|
96 |
-
</table>
|
|
|
1 |
---
|
2 |
license: creativeml-openrail-m
|
3 |
---
|
4 |
+
<!-- <h1 class="relative group flex items-center">
|
5 |
<span>
|
6 |
Diffusers
|
7 |
</span>
|
8 |
</h1>
|
9 |
<p>This model can be used just like any other Stable Diffusion model. For more information, please have a look at the <a target="_blank" href="https://huggingface.co/docs/diffusers/v0.28.2/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline"> Stable Diffusion XL </a>.</p>
|
10 |
|
11 |
+
<div class="relative group repo-copy-code"><pre>
|
12 |
+
<code class="language-python"><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionXLPipeline
|
13 |
+
<span class="hljs-keyword">import</span> torch
|
14 |
|
15 |
+
model_path = <span class="hljs-string">"https://huggingface.co/aiscilabs/RealisticProXL_V0.1.0_alpha/blob/main/RealisticProXL_aqheodd_0.1.safetensors"</span>
|
16 |
+
pipe = StableDiffusionXLPipeline.from_single_file(model_path)
|
17 |
+
pipe = pipe.to(<span class="hljs-string">"cuda"</span>)
|
18 |
|
19 |
+
prompt = <span class="hljs-string">"YOUR PROMPT"</span>
|
20 |
+
image = pipe(prompt).images[<span class="hljs-number">0</span>]
|
21 |
|
22 |
+
image.save(<span class="hljs-string">"image.png"</span>)
|
23 |
+
</code></pre>
|
24 |
+
<button class="absolute top-3 right-3 transition opacity-0 group-hover:opacity-80"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="0.9em" height="0.9em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg></button>
|
25 |
|
26 |
+
</div>
|
27 |
+
-->
|
28 |
<h1>Overview</h1>
|
29 |
|
30 |
***Foundation***
|
|
|
69 |
|
70 |
For better results ,a model token needs to be included : **aqheodd**
|
71 |
|
72 |
+
<!-- <h3 style="color:gray;margin-top:40px"> Diffuser model for this SD checkpoint on CIVITAI:</h3>
|
73 |
<p><a target="_blank" href="https://civitai.com/models/492985/realisticmodelproxlaqheodd">https://civitai.com/models/492985/realisticmodelproxlaqheodd</a> </p>
|
74 |
<h1 style="color:gray;margin-top:40px">Samples:</h1>
|
75 |
<table border="1" width="100%">
|
|
|
97 |
<img src="https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/20771f05-cfb7-4973-9222-7fd327b00214/width=450/2024-06-03_15-44-39_7104.jpeg"/>
|
98 |
</td>
|
99 |
</tr>
|
100 |
+
</table> -->
|