Spaces:
Running
on
Zero
Running
on
Zero
PseudoTerminal X
commited on
Commit
•
12d2706
1
Parent(s):
bff88dd
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import torch
|
2 |
-
from diffusers import
|
3 |
import gradio as gr
|
4 |
import spaces
|
5 |
|
6 |
# Load the pre-trained diffusion model
|
7 |
-
pipe =
|
8 |
pipe.to('cuda')
|
9 |
import re
|
10 |
|
@@ -48,6 +48,6 @@ iface = gr.Interface(
|
|
48 |
],
|
49 |
outputs=gr.Gallery(height=1024, min_width=1024, columns=2),
|
50 |
examples=example_prompts,
|
51 |
-
title="
|
52 |
-
description="
|
53 |
).launch()
|
|
|
1 |
import torch
|
2 |
+
from diffusers import PixArtSigmaPipeline
|
3 |
import gradio as gr
|
4 |
import spaces
|
5 |
|
6 |
# Load the pre-trained diffusion model
|
7 |
+
pipe = PixArtSigmaPipeline.from_pretrained('ptx0/pixart-900m-1024-ft', torch_dtype=torch.bfloat16)
|
8 |
pipe.to('cuda')
|
9 |
import re
|
10 |
|
|
|
48 |
],
|
49 |
outputs=gr.Gallery(height=1024, min_width=1024, columns=2),
|
50 |
examples=example_prompts,
|
51 |
+
title="PixArt 900M",
|
52 |
+
description="This is a 900M parameter model expanded from PixArt Sigma 1024px (600M) by adding 14 layers to deepen the transformer. It is being actively trained on 3.5M samples across a wide distribution of photos, synthetic data, cinema, anime, and safe-for-work furry art. The datasets been filtered for extremist and illegal content, but it is possible to produce toxic outputs. Be mindful when using this demo space that you do not inadvertently share images without adequate preparation and informing the users that these images are AI generated.<br /><br />This model is being trained with support from Fal.ai's grant program. See https://fal.ai/grants for more information."
|
53 |
).launch()
|