Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,10 @@ flags = {
|
|
67 |
for key, val in flags.items():
|
68 |
clevr_options[key] = val
|
69 |
|
70 |
-
clevr_model, clevr_diffusion =
|
|
|
|
|
|
|
71 |
clevr_model.eval()
|
72 |
if has_cuda:
|
73 |
clevr_model.convert_to_fp16()
|
@@ -346,9 +349,15 @@ with gr.Blocks() as demo:
|
|
346 |
gr.Markdown(
|
347 |
"""<p style="font-size: 18px;">When composing multiple inputs, please use <b>β|β</b> to separate them </p>""")
|
348 |
gr.Markdown(
|
349 |
-
"""<p>( <b>Note</b>: For composing CLEVR objects, we recommend using <b><i>x</i></b> in range <b><i>[0.1,
|
350 |
0.9]</i></b> and <b><i>y</i></b> in range <b><i>[0.25, 0.7]</i></b>, since the training dataset labels are in
|
351 |
-
given ranges.)</p
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
with gr.Row():
|
353 |
with gr.Column():
|
354 |
gr.Markdown(
|
|
|
67 |
for key, val in flags.items():
|
68 |
clevr_options[key] = val
|
69 |
|
70 |
+
clevr_model, clevr_diffusion = crgr.Markdown(
|
71 |
+
"""<p>( <b>Note</b>: For composing CLEVR objects, we recommend using <b><i>x</i></b> in range <b><i>[0.1,
|
72 |
+
0.9]</i></b> and <b><i>y</i></b> in range <b><i>[0.25, 0.7]</i></b>, since the training dataset labels are in
|
73 |
+
given ranges.)</p><hr>""")eate_model_and_diffusion_for_clevr(**clevr_options)
|
74 |
clevr_model.eval()
|
75 |
if has_cuda:
|
76 |
clevr_model.convert_to_fp16()
|
|
|
349 |
gr.Markdown(
|
350 |
"""<p style="font-size: 18px;">When composing multiple inputs, please use <b>β|β</b> to separate them </p>""")
|
351 |
gr.Markdown(
|
352 |
+
"""<p>( <b>Clevr Note</b>: For composing CLEVR objects, we recommend using <b><i>x</i></b> in range <b><i>[0.1,
|
353 |
0.9]</i></b> and <b><i>y</i></b> in range <b><i>[0.25, 0.7]</i></b>, since the training dataset labels are in
|
354 |
+
given ranges.)</p>""")
|
355 |
+
gr.Markdown(
|
356 |
+
"""<p>( <b>Point-E Demo Note</b>: THis demo only shows the point cloud results instead of meshes due to
|
357 |
+
hardware limitation. For mesh results, check out our code.)</p>""")
|
358 |
+
gr.Markdown(
|
359 |
+
"""<p>( <b>Stable Diffusion Note</b>: Stable Diffusion has filter enabled, so it sometimes generates all black
|
360 |
+
results for possibly improper images.)</p>""")
|
361 |
with gr.Row():
|
362 |
with gr.Column():
|
363 |
gr.Markdown(
|