newer_project / installation.py
YaTharThShaRma999's picture
Update installation.py
78b5c40 verified
raw
history blame
No virus
678 Bytes
import subprocess
import os
## runs installation steps
result = subprocess.run("git clone https://github.com/THU-MIG/RepViT.git && cd /RepViT/sam/ && pip install -e .", shell=True, capture_output=True, text=True)
subprocess.call(["pip", "install", "-r", "requirements.txt"])
os.chdir('/kaggle/working/')
subprocess.run(['wget', "https://huggingface.co/YaTharThShaRma999/important_files/resolve/main/repvit_sam.pt"], check=True)
subprocess.run(['wget', "https://huggingface.co/YaTharThShaRma999/important_files/resolve/main/gdinot-1.8m-odvg.pth"], check=True)
subprocess.run(['wget', "https://huggingface.co/YaTharThShaRma999/important_files/resolve/main/swint.py"], check=True)