Skip to content

Commit 633a698

Browse files
ariG23498pcuenca
andauthored
[FIX] SigLIP 2 (#2699)
* add installation instructions and repair space * Apply suggestions from code review Co-authored-by: Pedro Cuenca <[email protected]> --------- Co-authored-by: Pedro Cuenca <[email protected]>
1 parent 2cd5280 commit 633a698

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

siglip2.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ This brings us to the end of the evolution from SigLIP to SigLIP 2. In the next
102102

103103
Running inference on the models is pretty straightforward. You can copy paste the code below and run inference on a free tier Colab notebook 🚀
104104

105+
> [!NOTE]
106+
> To run inference on SigLIP 2, please install `transformers` from `main` or from this stable branch:
107+
> `pip install git+https://github.com/huggingface/[email protected]`
108+
105109
### Zero-shot Classification
106110

107111
Here we use the handy `pipeline` API to showcase zero-shot classification capabilities for SigLIP 2.
@@ -172,7 +176,7 @@ The evaluation table of SigLIP 2 demonstrates its superiority over SigLIP.
172176

173177
Here is a demo where one can compare the zero-shot classification results of SigLIP 1 and SigLIP 2.
174178

175-
<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/4.4.0/gradio.js"> </script>
179+
<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/5.16.1/gradio.js"></script>
176180
<gradio-app src="https://google-zero-shot-sg1-sg2.hf.space"></gradio-app>
177181

178182
## Using the encoder for VLMs

0 commit comments

Comments
 (0)