Skip to content

Commit

Permalink
testing yolo + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherjesse committed Oct 26, 2023
1 parent 679b9b0 commit 34f80b5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
21 changes: 15 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
GIT_SHA := $(shell git rev-parse HEAD)
BASE := "stability-ai/sdxl@sha256:c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316"
DEST := "anotherjesse/sdxl-recur"

ifeq ($(UNAME_M),arm64)
URL := "https://github.com/replicate/yolo/releases/latest/download/default.yolo_$(UNAME_S)_$(UNAME_M)"
else
URL := "https://github.com/replicate/yolo/releases/latest/download/yolo_$(UNAME_S)_$(UNAME_M)"
endif

TEST_API ?= http://localhost:4000

SMOKE := $(wildcard samples/*.json)

.PHONY: smoke $(SMOKE)

all: push

yolo:
curl -o yolo -L $(URL)
chmod +x yolo


push: yolo
./yolo push --base "stability-ai/sdxl@sha256:c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316" \
--dest anotherjesse/sdxl-recur \
--ast predict.py \
--commit $(shell git rev-parse HEAD) \
predict.py
./yolo push --base $(BASE) \
--dest $(DEST) \
--commit $(GIT_SHA) \
--ast predict.py \
--test-api $(TEST_API) \
--sample-dir samples/ \
predict.py
11 changes: 11 additions & 0 deletions samples/molecules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"zoom": 1.05,
"steps": 10,
"width": 768,
"frames": 30,
"height": 768,
"prompt": "mystical macro of molecules",
"scheduler": "K_EULER",
"guidance_scale": 7.5,
"prompt_strength": 0.8
}

0 comments on commit 34f80b5

Please sign in to comment.