Skip to content

Commit 8c92e21

Browse files
all: make normalization optional (#56), make all public API C-compatible (#58)
* rm __pycache__ * gitignore __pycache__ * gitignore dist * Refactor encoding functions to make normalization optional * Fix pip package #55 * Make entire public API C-compatible (#58) * main.c: remove hardcoded vec_dim * Make all public functions use C-compatible signatures * Move private declarations to clip.cpp * Merge with fix-zsl * Update examples * python: rm redundant bindings to CLIPLayer and models * formatting: apply formatting script * readme: add notices about the new API * zsl: use const auto & * tests: fix benchmark utility * python: bump version * Add constructor-like functions for batched structs --------- Co-authored-by: M. Yusuf Sarıgöz <[email protected]> --------- Co-authored-by: Denis Ismailaj <[email protected]>
1 parent deb8838 commit 8c92e21

File tree

15 files changed

+316
-394
lines changed

15 files changed

+316
-394
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This repo is aimed at powering useful applications based on such models on compu
1616
clip.cpp also has a short startup time compared to large ML frameworks, which makes it suitable for serverless deployments where the cold start is an issue.
1717

1818
## Hot topics
19+
- 09/14/2023: All functions are C-compatible now. `zsl` example is updated to match Huggingface's zero-shot behavior in the zero-shot pipeline.
1920
- 09/11/2023: Introduce Python bindings.
2021
- 07/12/2023: Batch inference support for image encoding.
2122
- 07/11/2023: Semantic image search [example](examples/image-search/README.md) directly in C++.

0 commit comments

Comments
 (0)