Update app.py
Browse files
app.py
CHANGED
@@ -110,15 +110,15 @@ def infer(
|
|
110 |
ip_adapter_image=ip_adapter_image,
|
111 |
).images[0]
|
112 |
|
113 |
-
if d_bckg:
|
114 |
-
image=remove(image)
|
115 |
|
116 |
#pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, rescale_betas_zero_snr=True)
|
117 |
return image, seed
|
118 |
|
119 |
|
120 |
examples = [
|
121 |
-
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a white flower on its head, sitting
|
122 |
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a white flower on its head, standing with a mischievous grin, one paw raised playfully, bright eyes full of energy, cheeky and fun, white background",
|
123 |
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a white flower on its head, jumping mid-air with a surprised expression, wide eyes, and mouth open in excitement, paws stretched out, energetic and playful, forest background.",
|
124 |
]
|
@@ -233,7 +233,7 @@ with gr.Blocks(css=css) as demo:
|
|
233 |
minimum=0,
|
234 |
maximum=MAX_SEED,
|
235 |
step=1,
|
236 |
-
value=
|
237 |
)
|
238 |
|
239 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
@@ -261,7 +261,7 @@ with gr.Blocks(css=css) as demo:
|
|
261 |
minimum=0.0,
|
262 |
maximum=10.0,
|
263 |
step=0.1,
|
264 |
-
value=7.
|
265 |
)
|
266 |
|
267 |
num_inference_steps = gr.Slider(
|
|
|
110 |
ip_adapter_image=ip_adapter_image,
|
111 |
).images[0]
|
112 |
|
113 |
+
#if d_bckg:
|
114 |
+
#image=remove(image)
|
115 |
|
116 |
#pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config, rescale_betas_zero_snr=True)
|
117 |
return image, seed
|
118 |
|
119 |
|
120 |
examples = [
|
121 |
+
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a one white flower on its head, sitting in lotus pose on a yoga mat, with its paws pressed together in front of its chest in a prayer position, eyes closed, looking calm and peaceful.",
|
122 |
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a white flower on its head, standing with a mischievous grin, one paw raised playfully, bright eyes full of energy, cheeky and fun, white background",
|
123 |
"Sticker VanillaCat. Cartoon-style cat with soft yellow fur and a white flower on its head, jumping mid-air with a surprised expression, wide eyes, and mouth open in excitement, paws stretched out, energetic and playful, forest background.",
|
124 |
]
|
|
|
233 |
minimum=0,
|
234 |
maximum=MAX_SEED,
|
235 |
step=1,
|
236 |
+
value=1274800826,
|
237 |
)
|
238 |
|
239 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
|
|
261 |
minimum=0.0,
|
262 |
maximum=10.0,
|
263 |
step=0.1,
|
264 |
+
value=7.3,
|
265 |
)
|
266 |
|
267 |
num_inference_steps = gr.Slider(
|