Spaces:
Runtime error
Runtime error
wrong example order
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ generator = torch.manual_seed(0)
|
|
32 |
def infer(prompt, negative_prompt, image):
|
33 |
# implement your inference function here
|
34 |
|
35 |
-
cond_input = conditioning_image_transforms(image)
|
36 |
|
37 |
output = pipe(
|
38 |
prompt,
|
@@ -62,7 +62,7 @@ gr.Interface(
|
|
62 |
outputs=gr.Gallery().style(grid=[2], height="auto"),
|
63 |
title="Generate controlled outputs with Categorical Conditioning on Waifu Diffusion 1.5 beta 2.",
|
64 |
description="This Space uses image examples as style conditioning.",
|
65 |
-
examples=[["
|
66 |
allow_flagging=False,
|
67 |
).launch(enable_queue=True)
|
68 |
|
|
|
32 |
def infer(prompt, negative_prompt, image):
|
33 |
# implement your inference function here
|
34 |
|
35 |
+
cond_input = T.ToPILImage(conditioning_image_transforms(image))
|
36 |
|
37 |
output = pipe(
|
38 |
prompt,
|
|
|
62 |
outputs=gr.Gallery().style(grid=[2], height="auto"),
|
63 |
title="Generate controlled outputs with Categorical Conditioning on Waifu Diffusion 1.5 beta 2.",
|
64 |
description="This Space uses image examples as style conditioning.",
|
65 |
+
examples=[["1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, watercolor, night, turtleneck", "low quality", "wikipe_cond_1.png"]],
|
66 |
allow_flagging=False,
|
67 |
).launch(enable_queue=True)
|
68 |
|