legoandmars commited on
Commit
7cd016f
·
1 Parent(s): 4bf8c13

minor readme changes

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -263,7 +263,7 @@ def inpaint(input_img, prompt):
263
  gradio_inputs = [gr.inputs.Image(type='pil',
264
  label="Input Image",
265
  image_mode="RGBA"),
266
- gr.inputs.Textbox(label='Conditional Text to Inpaint')]
267
 
268
  # gradio_outputs = [gr.outputs.Image(label='Auto-Detected Mask (From drawn black pixels)')]
269
 
@@ -272,9 +272,9 @@ examples = [['desert_full.png', 'a car in the desert'],
272
  ['pumpkin.png', 'a pumpkin growing in a spooky forest'],
273
  ['windows.png', 'foggy california forest outside the window']]
274
 
275
- title = "GLIDE Inpaint"
276
- description = "[WARNING: Queue times may take 4-6 minutes per person if there's no GPU! If there is a GPU, it'll take around 60 seconds] Using GLIDE to inpaint black regions of an input image! Instructions: 1) For the 'Input Image', upload an image. 2) For the 'Input Image with Mask', draw a black-colored mask (either manually with something like Paint, or by using gradio's built-in image editor & add a black-colored shape) IT MUST BE BLACK COLOR, but doesn't have to be rectangular! This is because it auto-detects the mask based on 0 (black) pixel values! 3) For the Conditional Text, type something you'd like to see the black region get filled in with :)"
277
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741' target='_blank'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im' target='_blank'>Github Repo</a></p>"
278
  iface = gr.Interface(fn=inpaint, inputs=gradio_inputs,
279
  outputs=gradio_outputs,
280
  examples=examples, title=title,
 
263
  gradio_inputs = [gr.inputs.Image(type='pil',
264
  label="Input Image",
265
  image_mode="RGBA"),
266
+ gr.inputs.Textbox(label='Text Prompt')]
267
 
268
  # gradio_outputs = [gr.outputs.Image(label='Auto-Detected Mask (From drawn black pixels)')]
269
 
 
272
  ['pumpkin.png', 'a pumpkin growing in a spooky forest'],
273
  ['windows.png', 'foggy california forest outside the window']]
274
 
275
+ title = "Transparency Inpainting Using GLIDE"
276
+ description = "An implementation of [OpenAI's GLIDE model](https://github.com/openai/glide-text2im/) that inpaints transparency with image data based on a text prompt.\n This space is based on [Epoching's original GLIDE_Inpaint space](https://huggingface.co/spaces/Epoching/GLIDE_Inpaint), with some adjustments to make generating images slightly less input-heavy.\n\n*NOTE:* Since this space currently runs on the CPU, queue times are relatively long - expect to wait 3-5 minutes for each image."
277
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741' target='_blank'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im' target='_blank'>Github Repo</a></p> "
278
  iface = gr.Interface(fn=inpaint, inputs=gradio_inputs,
279
  outputs=gradio_outputs,
280
  examples=examples, title=title,