Spaces:
Runtime error
Runtime error
[Update] ReadMe
Browse files- README.md +48 -0
- assert/dancing.png +3 -0
- 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
|
assert/dancing2.png
ADDED
Git LFS Details
|