File size: 347 Bytes
108b1ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
EFFICIENTVIT_SAM_URL := "https://huggingface.co/han-cai/efficientvit-sam/resolve/main"
EFFICIENTVIT_SAM_MODEL := "xl1.pt"


define download
	@if [ ! -f $(2) ]; then \
		echo "Download $(2)..."; \
		wget "$(1)/$(2)"; \
	fi
endef


setup:
	pip install -r requirements.txt


model:
	$(call download,$(EFFICIENTVIT_SAM_URL),$(EFFICIENTVIT_SAM_MODEL))