sam-inference / Makefile
Bono93's picture
feat: sam inference example
19d592d
raw
history blame contribute delete
407 Bytes
PYTHON=3.9
BASENAME=$(shell basename $(CURDIR))
CURRENT_DIR = $(shell pwd)
env:
conda create -n $(BASENAME) -y python=$(PYTHON)
setup:
pip install -r requirements.txt
pip install git+https://github.com/facebookresearch/segment-anything.git
load-model:
mkdir -p models
curl -O https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth && mv sam_vit_h_4b8939.pth models/sam_vit_h_4b8939.pth