-
Notifications
You must be signed in to change notification settings - Fork 19
/
install.py
25 lines (22 loc) · 971 Bytes
/
install.py
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
import os
import sys
from launch import run, git_clone, repo_dir
name = "Smart Crop"
req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt")
print(f"loading {name} reqs from {req_file}")
run(f'"{sys.executable}" -m pip install -r "{req_file}"', f"Checking {name} requirements.",
f"Couldn't install {name} requirements.")
print("Cloning BLIP repo...")
blip_repo = "https://github.com/pharmapsychotic/BLIP"
git_clone(blip_repo, repo_dir('BLIP'), "BLIP")
# git clone https://github.com/X-PLUG/mPLUG-Owl.git
# cd mPLUG-Owl/mPLUG-Owl2
# mplug_repo = "https://github.com/X-PLUG/mPLUG-Owl.git"
# mplug_owl_path = repo_dir('mplug_owl_src')
# git_clone(mplug_repo, mplug_owl_path, "mPLUG-Owl")
# mplug_owl2_sub1_path = os.path.join(mplug_owl_path, "mPLUG-Owl", "mplug_owl")
# mplug_owl2_sub2_path = os.path.join(mplug_owl_path, "mPLUG-Owl2", "mplug_owl2")
#
# sys.path.append(mplug_owl2_sub1_path)
# sys.path.append(mplug_owl2_sub2_path)
#