bfshi commited on
Commit
9053eb9
·
1 Parent(s): c0c592e
.gitattributes CHANGED
@@ -33,4 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
- *.mp4 filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ example_inputs/doorbell.mp4 filter=lfs diff=lfs merge=lfs -text
37
+ example_inputs/tomjerry.mp4 filter=lfs diff=lfs merge=lfs -text
38
+ example_inputs/security.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -207,9 +207,9 @@ def extract_first_frame_thumbnail(video_path, output_path, size=(200, 200), forc
207
 
208
  # Generate thumbnails for example videos
209
  example_videos = [
210
- "example_inputs/aerial.mp4",
211
  "example_inputs/doorbell.mp4",
212
  "example_inputs/tomjerry.mp4",
 
213
  ]
214
 
215
  for video_path in example_videos:
@@ -219,9 +219,9 @@ for video_path in example_videos:
219
  extract_first_frame_thumbnail(video_path, thumb_path, size=(100, 100), force=True)
220
 
221
  # Load thumbnails as numpy arrays
222
- aerial_thumb_img = np.array(Image.open("example_inputs/aerial_thumb.png"))
223
  doorbell_thumb_img = np.array(Image.open("example_inputs/doorbell_thumb.png"))
224
  tomjerry_thumb_img = np.array(Image.open("example_inputs/tomjerry_thumb.png"))
 
225
 
226
  with gr.Blocks(title="AutoGaze Demo", delete_cache=(86400, 86400)) as demo:
227
  gr.Markdown("# AutoGaze Official Demo")
@@ -247,9 +247,9 @@ with gr.Blocks(title="AutoGaze Demo", delete_cache=(86400, 86400)) as demo:
247
 
248
  def load_example_video(evt: gr.SelectData):
249
  video_map = {
250
- 0: "example_inputs/aerial.mp4",
251
- 1: "example_inputs/doorbell.mp4",
252
- 2: "example_inputs/tomjerry.mp4",
253
  }
254
  return video_map[evt.index]
255
 
@@ -258,9 +258,9 @@ with gr.Blocks(title="AutoGaze Demo", delete_cache=(86400, 86400)) as demo:
258
  gr.Markdown("### Example Videos - Click Thumbnail to Load")
259
  example_gallery = gr.Gallery(
260
  value=[
261
- (aerial_thumb_img, "aerial.mp4"),
262
  (doorbell_thumb_img, "doorbell.mp4"),
263
  (tomjerry_thumb_img, "tomjerry.mp4"),
 
264
  ],
265
  label="",
266
  show_label=False,
@@ -295,7 +295,7 @@ with gr.Blocks(title="AutoGaze Demo", delete_cache=(86400, 86400)) as demo:
295
  minimum=0.0,
296
  maximum=1.5,
297
  step=0.05,
298
- value=0.6,
299
  info="Reconstruction loss threshold"
300
  )
301
 
 
207
 
208
  # Generate thumbnails for example videos
209
  example_videos = [
 
210
  "example_inputs/doorbell.mp4",
211
  "example_inputs/tomjerry.mp4",
212
+ "example_inputs/security.mp4",
213
  ]
214
 
215
  for video_path in example_videos:
 
219
  extract_first_frame_thumbnail(video_path, thumb_path, size=(100, 100), force=True)
220
 
221
  # Load thumbnails as numpy arrays
 
222
  doorbell_thumb_img = np.array(Image.open("example_inputs/doorbell_thumb.png"))
223
  tomjerry_thumb_img = np.array(Image.open("example_inputs/tomjerry_thumb.png"))
224
+ security_thumb_img = np.array(Image.open("example_inputs/security_thumb.png"))
225
 
226
  with gr.Blocks(title="AutoGaze Demo", delete_cache=(86400, 86400)) as demo:
227
  gr.Markdown("# AutoGaze Official Demo")
 
247
 
248
  def load_example_video(evt: gr.SelectData):
249
  video_map = {
250
+ 0: "example_inputs/doorbell.mp4",
251
+ 1: "example_inputs/tomjerry.mp4",
252
+ 2: "example_inputs/security.mp4",
253
  }
254
  return video_map[evt.index]
255
 
 
258
  gr.Markdown("### Example Videos - Click Thumbnail to Load")
259
  example_gallery = gr.Gallery(
260
  value=[
 
261
  (doorbell_thumb_img, "doorbell.mp4"),
262
  (tomjerry_thumb_img, "tomjerry.mp4"),
263
+ (security_thumb_img, "security.mp4"),
264
  ],
265
  label="",
266
  show_label=False,
 
295
  minimum=0.0,
296
  maximum=1.5,
297
  step=0.05,
298
+ value=0.7,
299
  info="Reconstruction loss threshold"
300
  )
301
 
example_inputs/security.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee7d369a3cc5f9e05550915ed3338267b13c8408168796e824d97018dacb52ae
3
+ size 562396
example_inputs/security_thumb.png ADDED