Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,11 +108,12 @@ def get_inpainted_img(img, mask):
|
|
108 |
|
109 |
|
110 |
def remove_people(img, num_people_keep, dilate_kernel_size):
|
111 |
-
|
112 |
mask = get_mask(img, num_people_keep, dilate_kernel_size)
|
113 |
-
print(
|
|
|
114 |
out = get_inpainted_img(img, mask)
|
115 |
-
|
116 |
return out
|
117 |
|
118 |
|
@@ -131,6 +132,7 @@ model['lama'] = build_lama_model(lama_config, lama_ckpt, device=device)
|
|
131 |
|
132 |
|
133 |
with gr.Blocks() as demo:
|
|
|
134 |
features = gr.State(None)
|
135 |
|
136 |
with gr.Row():
|
|
|
108 |
|
109 |
|
110 |
def remove_people(img, num_people_keep, dilate_kernel_size):
|
111 |
+
print('Obtaining mask...')
|
112 |
mask = get_mask(img, num_people_keep, dilate_kernel_size)
|
113 |
+
print('Mask obtained')
|
114 |
+
print('Inpainting with LAMA...')
|
115 |
out = get_inpainted_img(img, mask)
|
116 |
+
print('Image Inpainted!')
|
117 |
return out
|
118 |
|
119 |
|
|
|
132 |
|
133 |
|
134 |
with gr.Blocks() as demo:
|
135 |
+
gr.Markdown(description)
|
136 |
features = gr.State(None)
|
137 |
|
138 |
with gr.Row():
|