JianyuanWang commited on
Commit
559ce8f
1 Parent(s): 18581d3
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -30,6 +30,7 @@ def vggsfm_demo(
30
  query_frame_num,
31
  max_query_pts=4096,
32
  ):
 
33
 
34
  if input_video is not None:
35
  if not isinstance(input_video, str):
@@ -230,6 +231,8 @@ with gr.Blocks() as demo:
230
  <li>upload the images (.jpg, .png, etc.), or </li>
231
  <li>upload a video (.mp4, .mov, etc.) </li>
232
  </ul>
 
 
233
  <p>If both images and videos are uploaded, the demo will only reconstruct the uploaded images. By default, we extract one image frame per second from the input video. To prevent crashes on the Hugging Face space, we currently limit reconstruction to the first 20 image frames. </p>
234
  <p>If you meet any problem, feel free to create an issue in our <a href="https://github.com/facebookresearch/vggsfm" target="_blank">GitHub Repo</a> ⭐</p>
235
  <p>(Please note that running reconstruction on Hugging Face space is slower than on a local machine.) </p>
@@ -252,7 +255,7 @@ with gr.Blocks() as demo:
252
  submit_btn = gr.Button("Reconstruct")
253
 
254
  examples = [
255
- [cake_video, cake_images, 3, 4096],
256
  [british_museum_video, british_museum_images, 2, 4096],
257
  ]
258
 
 
30
  query_frame_num,
31
  max_query_pts=4096,
32
  ):
33
+ torch.cuda.empty_cache()
34
 
35
  if input_video is not None:
36
  if not isinstance(input_video, str):
 
231
  <li>upload the images (.jpg, .png, etc.), or </li>
232
  <li>upload a video (.mp4, .mov, etc.) </li>
233
  </ul>
234
+ <p>The reconstruction should take <strong> up to 1 minute </strong>. </p>
235
+ <p>SfM methods are designed for <strong> rigid/static reconstruction </strong>. While it may still work with moving objects, it is best to minimize the presence of such objects in your input data for a good quality. </p>
236
  <p>If both images and videos are uploaded, the demo will only reconstruct the uploaded images. By default, we extract one image frame per second from the input video. To prevent crashes on the Hugging Face space, we currently limit reconstruction to the first 20 image frames. </p>
237
  <p>If you meet any problem, feel free to create an issue in our <a href="https://github.com/facebookresearch/vggsfm" target="_blank">GitHub Repo</a> ⭐</p>
238
  <p>(Please note that running reconstruction on Hugging Face space is slower than on a local machine.) </p>
 
255
  submit_btn = gr.Button("Reconstruct")
256
 
257
  examples = [
258
+ # [cake_video, cake_images, 3, 4096],
259
  [british_museum_video, british_museum_images, 2, 4096],
260
  ]
261