Spaces:
Runtime error
Runtime error
Commit
·
c9b9e48
1
Parent(s):
cfd47f7
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
|
84 |
args.controlnet_model_name_or_path,
|
85 |
revision=args.controlnet_revision,
|
86 |
from_pt=args.controlnet_from_pt,
|
87 |
-
dtype=jnp.
|
88 |
)
|
89 |
|
90 |
pipeline, pipeline_params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
@@ -92,7 +92,7 @@ pipeline, pipeline_params = FlaxStableDiffusionControlNetPipeline.from_pretraine
|
|
92 |
# tokenizer=tokenizer,
|
93 |
controlnet=controlnet,
|
94 |
safety_checker=None,
|
95 |
-
dtype=jnp.
|
96 |
revision=args.revision,
|
97 |
from_pt=args.from_pt,
|
98 |
)
|
@@ -138,7 +138,6 @@ def infer(prompt, negative_prompt, image):
|
|
138 |
|
139 |
with gr.Blocks(theme='gradio/soft') as demo:
|
140 |
gr.Markdown("## Stable Diffusion with Hand Control")
|
141 |
-
gr.Markdown("In this app, you can find different ControlNets with different filters. ")
|
142 |
|
143 |
with gr.Column():
|
144 |
prompt_input = gr.Textbox(label="Prompt")
|
|
|
84 |
args.controlnet_model_name_or_path,
|
85 |
revision=args.controlnet_revision,
|
86 |
from_pt=args.controlnet_from_pt,
|
87 |
+
dtype=jnp.float32,
|
88 |
)
|
89 |
|
90 |
pipeline, pipeline_params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
|
|
92 |
# tokenizer=tokenizer,
|
93 |
controlnet=controlnet,
|
94 |
safety_checker=None,
|
95 |
+
dtype=jnp.float32,
|
96 |
revision=args.revision,
|
97 |
from_pt=args.from_pt,
|
98 |
)
|
|
|
138 |
|
139 |
with gr.Blocks(theme='gradio/soft') as demo:
|
140 |
gr.Markdown("## Stable Diffusion with Hand Control")
|
|
|
141 |
|
142 |
with gr.Column():
|
143 |
prompt_input = gr.Textbox(label="Prompt")
|