From a115bc011e73cb69e6d42298c0ea68382d653da8 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Tue, 5 Sep 2023 17:11:08 +0200 Subject: initial commit: load images, impl hue/brightness embedder, impl MST algorithm on embeds --- test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test.py (limited to 'test.py') diff --git a/test.py b/test.py new file mode 100644 index 0000000..317eaf0 --- /dev/null +++ b/test.py @@ -0,0 +1,11 @@ +from PIL import Image +from imgbeddings import imgbeddings +import sys + +b = imgbeddings() +for p in sys.argv[1:]: + f = open(p, "rb") + im = Image.open(f) + em = b.to_embeddings(im) + print(em) +print(f"embedded {len(sys.argv[1:])} images.") -- cgit v1.2.3-70-g09d2