-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
59 lines (50 loc) · 1.23 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ! /bin/bash
echo ""
echo ">>> Clone repo from https://github.com/EvolvingLMMs-Lab/LongVA ..."
echo ""
git clone https://github.com/EvolvingLMMs-Lab/LongVA
cd LongVA
echo ""
echo ">>> Install dependencies for LongVA ..."
echo ""
pip install -e "longva/.[train]"
pip install packaging
pip install ninja
pip install flash-attn --no-build-isolation --no-cache-dir
pip install -r requirements.txt
echo ""
echo ">>> Clone repo from https://github.com/IDEA-Research/GroundingDINO.git ..."
echo ""
cd ..
git clone https://github.com/IDEA-Research/GroundingDINO.git
echo ""
echo ">>> Install dependencies for Grounding DINO ..."
echo ""
cd GroundingDINO/
pip install -e .
echo ""
echo ">>> Download Grouding DINO weight ..."
echo ""
mkdir weights
cd weights
wget https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth
cd ..
echo ""
echo ">>> Install dependencies for Vigilant ..."
echo ""
cd ..
pip install -r requirements.txt
pip install -U transformers
echo ""
echo ">>> Copy config files ..."
echo ""
cp config/config_template.py ./config.py
cp config/bentofile.yaml ./bentofile.yaml
echo ""
echo ">>> Install FFmpeg ..."
echo ""
sudo apt update
sudo apt install ffmpeg -y
echo ""
echo ">>> Done!"
echo ""