Epoching commited on
Commit
ecee77a
1 Parent(s): 8d0b4cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -188,7 +188,8 @@ def resizer(input_img, max_img_size=512):
188
  def main_app(input_img, num_frames, fps):
189
 
190
  # Save image in necessary folder for inpainting
191
- img_name = Path(str(uuid.uuid4()) + '.jpg')
 
192
  save_folder = Path('image')
193
 
194
  input_img = resizer(input_img)
@@ -214,7 +215,7 @@ gradio_inputs = [gr.inputs.Image(type='pil', label='Input Image'),
214
  gradio_outputs = [gr.outputs.Video(label='Output Video')]
215
  examples = [ ['moon.jpg'], ['dog.jpg'] ]
216
 
217
- description="Convert an image into a trajectory-following video. Images are automatically resized down to a max edge of 512. | NOTE: The current runtime for a sample is around 400-700 seconds. Running on a lower number of frames could help! Do be patient as this is on CPU-only, BUT if this space maybe gets a GPU one day, it's already configured to run with GPU-support :) If you have a GPU, feel free to use the author's original repo (linked at the bottom of this path). You can also run this space/gradio app locally!"
218
 
219
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2004.04727' target='_blank'>3D Photography using Context-aware Layered Depth Inpainting</a> | <a href='https://shihmengli.github.io/3D-Photo-Inpainting/' target='_blank'>Github Project Page</a> | <a href='https://github.com/vt-vl-lab/3d-photo-inpainting' target='_blank'>Github Repo</a></p>"
220
 
 
188
  def main_app(input_img, num_frames, fps):
189
 
190
  # Save image in necessary folder for inpainting
191
+ #img_name = Path(str(uuid.uuid4()) + '.jpg')
192
+ img_name = Path('sample.jpg')
193
  save_folder = Path('image')
194
 
195
  input_img = resizer(input_img)
 
215
  gradio_outputs = [gr.outputs.Video(label='Output Video')]
216
  examples = [ ['moon.jpg'], ['dog.jpg'] ]
217
 
218
+ description="Convert an image into a trajectory-following video. Images are automatically resized down to a max edge of 512. | NOTE: The current runtime for a sample is around 400-700 seconds. Running on a lower number of frames could help! Do be patient as this is on CPU-only, BUT if this space maybe gets a GPU one day, it's already configured to run with GPU-support :) If you have a GPU, feel free to use the author's original repo (linked at the bottom of this path, they have a collab notebook!) You can also run this space/gradio app locally!"
219
 
220
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2004.04727' target='_blank'>3D Photography using Context-aware Layered Depth Inpainting</a> | <a href='https://shihmengli.github.io/3D-Photo-Inpainting/' target='_blank'>Github Project Page</a> | <a href='https://github.com/vt-vl-lab/3d-photo-inpainting' target='_blank'>Github Repo</a></p>"
221