Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,6 @@ def generate_image(
|
|
86 |
id_embeddings = None
|
87 |
uncond_id_embeddings = None
|
88 |
|
89 |
-
print(id_embeddings)
|
90 |
|
91 |
# prepare input
|
92 |
x = get_noise(
|
@@ -97,7 +96,6 @@ def generate_image(
|
|
97 |
dtype=torch.bfloat16,
|
98 |
seed=opts.seed,
|
99 |
)
|
100 |
-
print(x)
|
101 |
timesteps = get_schedule(
|
102 |
opts.num_steps,
|
103 |
x.shape[-1] * x.shape[-2] // 4,
|
@@ -203,7 +201,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
203 |
generate_btn = gr.Button("Generate")
|
204 |
|
205 |
with gr.Column():
|
206 |
-
output_image = gr.Image(label="Generated Image")
|
207 |
seed_output = gr.Textbox(label="Used Seed")
|
208 |
intermediate_output = gr.Gallery(label='Output', elem_id="gallery", visible=args.dev)
|
209 |
gr.Markdown(_CITE_)
|
|
|
86 |
id_embeddings = None
|
87 |
uncond_id_embeddings = None
|
88 |
|
|
|
89 |
|
90 |
# prepare input
|
91 |
x = get_noise(
|
|
|
96 |
dtype=torch.bfloat16,
|
97 |
seed=opts.seed,
|
98 |
)
|
|
|
99 |
timesteps = get_schedule(
|
100 |
opts.num_steps,
|
101 |
x.shape[-1] * x.shape[-2] // 4,
|
|
|
201 |
generate_btn = gr.Button("Generate")
|
202 |
|
203 |
with gr.Column():
|
204 |
+
output_image = gr.Image(label="Generated Image", format='png')
|
205 |
seed_output = gr.Textbox(label="Used Seed")
|
206 |
intermediate_output = gr.Gallery(label='Output', elem_id="gallery", visible=args.dev)
|
207 |
gr.Markdown(_CITE_)
|