asdfasdfqrqwer commited on
Commit
fc6b982
·
1 Parent(s): 2898e6c

Add full multimodal demo examples

Browse files
.gitattributes CHANGED
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
36
  examples/man_laughing.mp4 filter=lfs diff=lfs merge=lfs -text
37
  examples/man_sad.mp4 filter=lfs diff=lfs merge=lfs -text
38
  examples/woman_laughing_studio.mp4 filter=lfs diff=lfs merge=lfs -text
 
 
36
  examples/man_laughing.mp4 filter=lfs diff=lfs merge=lfs -text
37
  examples/man_sad.mp4 filter=lfs diff=lfs merge=lfs -text
38
  examples/woman_laughing_studio.mp4 filter=lfs diff=lfs merge=lfs -text
39
+ examples/*.mp4 filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -31,4 +31,8 @@ The model processes video frames, audio clips, and optional subtitles to perform
31
  1. Upload a video file (with or without audio)
32
  2. Optionally provide a separate audio file or subtitle text
33
  3. Ask a question about the emotional state (e.g., "Please infer the person's emotional state and provide your reasoning process.")
34
- 4. Click "Recognize Emotion" to get the model's response
 
 
 
 
 
31
  1. Upload a video file (with or without audio)
32
  2. Optionally provide a separate audio file or subtitle text
33
  3. Ask a question about the emotional state (e.g., "Please infer the person's emotional state and provide your reasoning process.")
34
+ 4. Click "Recognize Emotion" to get the model's response
35
+
36
+ ## Demo Examples
37
+
38
+ The built-in examples use full audio-visual speech clips from [RAVDESS](https://zenodo.org/records/1188976) with transcript text. RAVDESS is licensed under CC BY-NC-SA 4.0; please cite the dataset if you use these clips outside this non-commercial demo.
app.py CHANGED
@@ -281,6 +281,10 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
281
  "[GitHub](https://github.com/GAIR-Lab/Light-MER) | "
282
  "[Model](https://huggingface.co/kevin233333/Light-MER)"
283
  )
 
 
 
 
284
 
285
  with gr.Row():
286
  with gr.Column(scale=2):
@@ -319,9 +323,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
319
 
320
  gr.Examples(
321
  examples=[
322
- ["examples/man_laughing.mp4", None, "", DEFAULT_QUESTION],
323
- ["examples/man_sad.mp4", None, "", DEFAULT_QUESTION],
324
- ["examples/woman_laughing_studio.mp4", None, "", DEFAULT_QUESTION],
325
  ],
326
  inputs=[video_input, audio_input, subtitle_input, question_input],
327
  outputs=output_text,
 
281
  "[GitHub](https://github.com/GAIR-Lab/Light-MER) | "
282
  "[Model](https://huggingface.co/kevin233333/Light-MER)"
283
  )
284
+ gr.Markdown(
285
+ "Examples use full audio-visual speech clips from "
286
+ "[RAVDESS](https://zenodo.org/records/1188976) with transcript text."
287
+ )
288
 
289
  with gr.Row():
290
  with gr.Column(scale=2):
 
323
 
324
  gr.Examples(
325
  examples=[
326
+ ["examples/ravdess_happy_strong_kids_actor01.mp4", None, "Kids are talking by the door.", DEFAULT_QUESTION],
327
+ ["examples/ravdess_sad_strong_kids_actor01.mp4", None, "Kids are talking by the door.", DEFAULT_QUESTION],
328
+ ["examples/ravdess_angry_strong_kids_actor01.mp4", None, "Kids are talking by the door.", DEFAULT_QUESTION],
329
  ],
330
  inputs=[video_input, audio_input, subtitle_input, question_input],
331
  outputs=output_text,
examples/ravdess_angry_strong_kids_actor01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1411ce319d91004011b81e97319fe26cd8360ed77c3a5535418fcacca6f7a7fd
3
+ size 5227370
examples/ravdess_happy_strong_kids_actor01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebc8e90cfcb2e3ace9ea905f3a33eb85bf7276fb21e15e0150b5c54c5e269f04
3
+ size 4664999
examples/ravdess_sad_strong_kids_actor01.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c66405fe4b1b522ffb90e8bc671dd239e6b6f2f2f76e533aca9e95802c79f1d7
3
+ size 4826135