Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
c53db80
1
Parent(s):
72572e5
Update app.py
Browse files
app.py
CHANGED
@@ -129,19 +129,19 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
129 |
```py
|
130 |
from diffusers import AutoPipelineForText2Image
|
131 |
pipe = AutoPipelineForText2Image.from_pretrained(
|
132 |
-
"
|
133 |
custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
|
134 |
torch_dtype=torch.float16
|
135 |
).to(device)
|
136 |
|
137 |
prompt = "a cat"
|
138 |
-
image =
|
139 |
```
|
140 |
## Using it ComfyUI/Automatic1111
|
141 |
-
- [
|
142 |
-
- [
|
143 |
-
- [
|
144 |
-
- [
|
145 |
''')
|
146 |
#gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples=True)
|
147 |
gr.on(
|
|
|
129 |
```py
|
130 |
from diffusers import AutoPipelineForText2Image
|
131 |
pipe = AutoPipelineForText2Image.from_pretrained(
|
132 |
+
"common-canvas/CommonCanvasXL-C", #here you can pick between all models
|
133 |
custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
|
134 |
torch_dtype=torch.float16
|
135 |
).to(device)
|
136 |
|
137 |
prompt = "a cat"
|
138 |
+
image = pipe(prompt, num_inference_steps=25).images[0]
|
139 |
```
|
140 |
## Using it ComfyUI/Automatic1111
|
141 |
+
- [CommonCanvasS-C.safetensors](https://huggingface.co/common-canvas/CommonCanvas-S-C/resolve/main/commoncanvas_s_c.safetensors?download=true) (SD2 drop-in, commercial)
|
142 |
+
- [CommonCanvasS-NC.safetensors](https://huggingface.co/common-canvas/CommonCanvas-S-NC/resolve/main/commoncanvas_s_nc.safetensors?download=true) (SD2 drop-in, non-commercial - trained on more data)
|
143 |
+
- [CommonCanvasXL-C.safetensors](https://huggingface.co/common-canvas/CommonCanvas-XL-NC/blob/main/commoncanvas_xl_nc.safetensors) (SDXL drop-in, commercial)
|
144 |
+
- [CommonCanvasXL-NC.safetensors](https://huggingface.co/common-canvas/CommonCanvas-XL-NC/resolve/main/commoncanvas_xl_nc.safetensors?download=true) (SDXL drop-in, non-commercial - trained on more data)
|
145 |
''')
|
146 |
#gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples=True)
|
147 |
gr.on(
|