File size: 404 Bytes
c336648
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import launch

def install_req(check_name, install_name=None):
    if not install_name: install_name = check_name
    if not launch.is_installed(f"{check_name}"):
        launch.run_pip(f"install {install_name}", f"{install_name} requirements for Figma Extension")

# install_req("ultralytics")
install_req("git+https://github.com/facebookresearch/segment-anything.git")
install_req("rembg","rembg[gpu]")