ynhe commited on
Commit
f2d5ec9
1 Parent(s): 5423e78

[Update] ReadMe

Browse files
Files changed (3) hide show
  1. README.md +48 -0
  2. assert/dancing.png +3 -0
  3. assert/dancing2.png +3 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VideoChat
2
+
3
+ VideoChat is a multifunctional video question answering tool that combines the functions of Action Recognition, Visual Captioning and ChatGPT. Our solution generates dense, descriptive captions for any object and action in a video, offering a range of language styles to suit different user preferences. It supports users to have conversations in different lengths, emotions, authenticity of language.
4
+ - Video-Text Generation
5
+ - Chat about uploaded video
6
+ - Interactive demo
7
+
8
+ # :fire: Updates
9
+
10
+ - **2023/04/19**: Code Release
11
+
12
+ # :speech_balloon: Example
13
+
14
+ ![images](assert/dancing.png)
15
+ ![images](assert/dancing2.png)
16
+
17
+ # :running: Usage
18
+
19
+ ```shell
20
+ # We recommend using conda to manage the environment and use python3.8.16
21
+ conda create -n chatvideo python=3.8.16
22
+ conda activate chatvideo
23
+
24
+ # Clone the repository:
25
+ git clone https://github.com/OpenGVLab/Ask-Anything.git
26
+ cd ask-anything/video_chat
27
+
28
+ # Install dependencies:
29
+ pip install -r requirements.txt
30
+ pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
31
+ python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
32
+
33
+ # Download the checkpoints
34
+ wget https://huggingface.co/spaces/xinyu1205/Tag2Text/resolve/main/tag2text_swin_14m.pth ./pretrained_models/tag2text_swin_14m.pth
35
+ wget https://datarelease.blob.core.windows.net/grit/models/grit_b_densecap_objectdet.pth ./pretrained_models/grit_b_densecap_objectdet.pth
36
+ git clone https://huggingface.co/mrm8488/flan-t5-large-finetuned-openai-summarize_from_feedback ./pretrained_models/flan-t5-large-finetuned-openai-summarize_from_feedback
37
+
38
+ # Configure the necessary ChatGPT APIs
39
+ export OPENAI_API_KEY={Your_Private_Openai_Key}
40
+
41
+ # Run the VideoChat gradio demo.
42
+ python app.py
43
+ ```
44
+
45
+ # Acknowledgement
46
+
47
+ The project is based on [InternVideo](https://github.com/OpenGVLab/InternVideo), [Tag2Text](https://github.com/xinyu1205/Tag2Text), [GRiT](https://github.com/JialianW/GRiT), [mrm8488](https://huggingface.co/mrm8488/flan-t5-large-finetuned-openai-summarize_from_feedback) and [ChatGPT](https://openai.com/blog/chatgpt). Thanks for the authors for their efforts.
48
+
assert/dancing.png ADDED

Git LFS Details

  • SHA256: be26385f812b661e8e562e5f867d8045aa5020556bc2c7c308b4c143767e78f7
  • Pointer size: 131 Bytes
  • Size of remote file: 514 kB
assert/dancing2.png ADDED

Git LFS Details

  • SHA256: 45308d25cd372c29a74480ee6d6488a7774a641ef4d2dd260a323bed87d9b135
  • Pointer size: 131 Bytes
  • Size of remote file: 515 kB