-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (24 loc) · 873 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
MODEL_PATH=/Users/drustsmith/repos/stable-diffusion-webui/models/Stable-diffusion/realisticVisionV51_v51VAE.safetensors
MODEL_NAME=RealisticVision/
test:
pytest tests
format:
black .
control:
# create sym link from model_path to model
# ln -s $(MODEL_PATH) model.safetensors
export PYTORCH_ENABLE_MPS_FALLBACK=1;
poetry run python -m logo_buddy.controlnet
run:
export PYTORCH_ENABLE_MPS_FALLBACK=1;
poetry run python -m logo_buddy.main
convert:
if [ ! -f convert_original_stable_diffusion_to_diffusers.py ]; then \
wget https://raw.githubusercontent.com/huggingface/diffusers/v0.20.0/scripts/convert_original_stable_diffusion_to_diffusers.py; \
fi
poetry run python convert_original_stable_diffusion_to_diffusers.py \
--checkpoint_path $(MODEL_PATH) \
--dump_path $(MODEL_NAME) \
--from_safetensors
sticker:
poetry run python -m logo_buddy.sticker