|
import subprocess |
|
import os |
|
|
|
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) |
|
|