Anisha Bhatnagar commited on
Commit ·
844bfad
1
Parent(s): 3503847
updated checkpoints
Browse files- app.py +4 -3
- ckpt/AL_ckpt.pth +3 -0
- ckpt/VL_ckpt.pth +3 -0
- eval_configs/video_llama_eval_withaudio_stage3.yaml +3 -2
app.py
CHANGED
|
@@ -109,11 +109,12 @@ print('Initialization Finished')
|
|
| 109 |
print ('Step2: feed-forward process')
|
| 110 |
title = "Video-LLaMA for hate Detection"
|
| 111 |
|
| 112 |
-
description = "
|
| 113 |
|
| 114 |
-
article = "
|
|
|
|
| 115 |
|
| 116 |
-
demo = gr.Interface(fn=infer, inputs="video", outputs="text", title=title, description=description, article=article)
|
| 117 |
|
| 118 |
demo.launch(share=True,show_api=False)
|
| 119 |
|
|
|
|
| 109 |
print ('Step2: feed-forward process')
|
| 110 |
title = "Video-LLaMA for hate Detection"
|
| 111 |
|
| 112 |
+
description = "Hate-LLaMA , is a multi-modal framework, designed to detect hate in videos and classify them as HATE or NON HATE. Hate-LLaMA finetunes Video-LLaMA (uses the LLaMA-7b-chat model as backbone). After uploading a video and clicking submit, the model outputs a simple statement identifying if the video has hate or not. "
|
| 113 |
|
| 114 |
+
article = ""
|
| 115 |
+
#examples = ["examples/hate_video_136.mp4","examples/hate_video_2.mp4", "examples/non_hate_video_349.mp4", "examples/non_hate_video_569.mp4"]
|
| 116 |
|
| 117 |
+
demo = gr.Interface(fn=infer, inputs="video", outputs="text", title=title, description=description, article=article) #, examples=examples)
|
| 118 |
|
| 119 |
demo.launch(share=True,show_api=False)
|
| 120 |
|
ckpt/AL_ckpt.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34339862bfe6b2d7cd8df30c3c4d5f82eab4be2f1b6723df45705562d9f8754a
|
| 3 |
+
size 274580022
|
ckpt/VL_ckpt.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3985122b353236278eae8881b256fcf4ee3eb845003c055287c3961b6f59dee
|
| 3 |
+
size 265436260
|
eval_configs/video_llama_eval_withaudio_stage3.yaml
CHANGED
|
@@ -13,9 +13,10 @@ model:
|
|
| 13 |
# some ckpts could be download from our provided huggingface repo
|
| 14 |
# i.e. https://huggingface.co/DAMO-NLP-SG/Video-LLaMA-2-13B-Finetuned
|
| 15 |
llama_model: "meta-llama/Llama-2-7b-chat-hf" #"ckpt/llama-2-7b-chat-hf"
|
|
|
|
| 16 |
imagebind_ckpt_path: "ckpt/imagebind_huge"
|
| 17 |
-
ckpt: 'ckpt/
|
| 18 |
-
ckpt_2: 'ckpt/
|
| 19 |
|
| 20 |
equip_audio_branch: True # whether equips the audio branch
|
| 21 |
fusion_head_layers: 2
|
|
|
|
| 13 |
# some ckpts could be download from our provided huggingface repo
|
| 14 |
# i.e. https://huggingface.co/DAMO-NLP-SG/Video-LLaMA-2-13B-Finetuned
|
| 15 |
llama_model: "meta-llama/Llama-2-7b-chat-hf" #"ckpt/llama-2-7b-chat-hf"
|
| 16 |
+
#llama_model: "ckpt/llama-2-7b-chat-hf"
|
| 17 |
imagebind_ckpt_path: "ckpt/imagebind_huge"
|
| 18 |
+
ckpt: 'ckpt/VL_ckpt.pth' # you can use our pretrained ckpt from https://huggingface.co/DAMO-NLP-SG/Video-LLaMA-2-13B-Pretrained/
|
| 19 |
+
ckpt_2: 'ckpt/AL_ckpt.pth'
|
| 20 |
|
| 21 |
equip_audio_branch: True # whether equips the audio branch
|
| 22 |
fusion_head_layers: 2
|