Spaces:
Running
on
Zero
Running
on
Zero
add result
Browse files- app.py +2 -3
- examples/expand_mouth_mask_result.jpg +0 -0
- examples/normal_mouth_mask_result.jpg +0 -0
app.py
CHANGED
@@ -86,7 +86,6 @@ def process_images(image, image2=None,prompt="a girl",inpaint_model="black-fores
|
|
86 |
mask_image = mask_image.resize((width, height), Image.NEAREST)
|
87 |
mask_image = mask_image.convert("RGB")
|
88 |
|
89 |
-
print(mask_image.mode)
|
90 |
output = pipe(prompt=prompt, image=image, mask_image=mask_image,generator=generator,strength=strength,width=width,height=height,
|
91 |
guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=256)
|
92 |
|
@@ -164,8 +163,8 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
164 |
gr.Examples(
|
165 |
examples=[
|
166 |
["examples/00547245_99.jpg", "examples/00547245_99_mask.jpg","a beautiful girl,eyes closed",0.75,"examples/00547245.jpg"],
|
167 |
-
["examples/00538245.jpg", "examples/normal_mouth_mask.jpg","a beautiful girl,big-smile",0.75,"examples/
|
168 |
-
["examples/00538245.jpg", "examples/expand_mouth_mask.jpg","a beautiful girl,big-smile",0.75,"examples/
|
169 |
["examples/00207245_18.jpg", "examples/00207245_18_mask.jpg","a beautiful girl,mouth opened",0.2,"examples/00207245.jpg"]
|
170 |
]
|
171 |
,
|
|
|
86 |
mask_image = mask_image.resize((width, height), Image.NEAREST)
|
87 |
mask_image = mask_image.convert("RGB")
|
88 |
|
|
|
89 |
output = pipe(prompt=prompt, image=image, mask_image=mask_image,generator=generator,strength=strength,width=width,height=height,
|
90 |
guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=256)
|
91 |
|
|
|
163 |
gr.Examples(
|
164 |
examples=[
|
165 |
["examples/00547245_99.jpg", "examples/00547245_99_mask.jpg","a beautiful girl,eyes closed",0.75,"examples/00547245.jpg"],
|
166 |
+
["examples/00538245.jpg", "examples/normal_mouth_mask.jpg","a beautiful girl,big-smile",0.75,"examples/normal_mouth_mask_result.jpg"],
|
167 |
+
["examples/00538245.jpg", "examples/expand_mouth_mask.jpg","a beautiful girl,big-smile",0.75,"examples/expand_mouth_mask_result.jpg"],
|
168 |
["examples/00207245_18.jpg", "examples/00207245_18_mask.jpg","a beautiful girl,mouth opened",0.2,"examples/00207245.jpg"]
|
169 |
]
|
170 |
,
|
examples/expand_mouth_mask_result.jpg
ADDED
examples/normal_mouth_mask_result.jpg
ADDED