atatakun commited on
Commit
b58b18c
·
1 Parent(s): ec78c91

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -217,7 +217,7 @@ model_inpaint = None
217
  def inpaint(image):
218
  # image = resize_image(img, res)
219
  color = HWC3(image["image"])
220
- alpha = image["mask"][:, :, 0:1]
221
  result = np.concatenate([color, alpha], axis=2)
222
  return [result]
223
 
@@ -242,7 +242,7 @@ with block:
242
  gr.Markdown("## Inpaint \n<p>Mochi Diffusionの次バージョンで使えるようになるかもしれないので試作")
243
  with gr.Row():
244
  with gr.Column():
245
- input_image = gr.Image(source='upload', type="numpy", tool="sketch")
246
  # resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
247
  run_button = gr.Button(label="Run")
248
  with gr.Column():
 
217
  def inpaint(image):
218
  # image = resize_image(img, res)
219
  color = HWC3(image["image"])
220
+ alpha = HWC3(image["mask"][:, :, 0:1])
221
  result = np.concatenate([color, alpha], axis=2)
222
  return [result]
223
 
 
242
  gr.Markdown("## Inpaint \n<p>Mochi Diffusionの次バージョンで使えるようになるかもしれないので試作")
243
  with gr.Row():
244
  with gr.Column():
245
+ input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
246
  # resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
247
  run_button = gr.Button(label="Run")
248
  with gr.Column():