File size: 2,637 Bytes
d3f3e7d
 
 
 
 
 
 
 
 
 
 
3b3665e
 
 
 
 
 
 
 
fa2a95e
 
 
 
 
3b3665e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
33
34
35
36
37
38
39
40
---
license: apache-2.0
language:
- en
pipeline_tag: image-classification
library_name: transformers
tags:
- notebook
- colab
- siglip2
- image-to-text
---

> **Finetune SigLIP2 Image Classification**

This notebook demonstrates how to fine-tune SigLIP 2, a robust multilingual vision-language model, for single-label image classification tasks. The fine-tuning process incorporates advanced techniques such as captioning-based pretraining, self-distillation, and masked prediction, unified within a streamlined training pipeline. The workflow supports datasets in both structured and unstructured forms, making it adaptable to various domains and resource levels.

| Notebook Name                        | Description                                      | Notebook Link |
|-------------------------------------|--------------------------------------------------|----------------|
| notebook-siglip2-finetune-type1  | Train/Test Splits  | [Download](https://huggingface.co/prithivMLmods/FineTuning-SigLIP2-Notebook/blob/main/Finetune-SigLIP2-Image-Classification/1.SigLIP2_Finetune_ImageClassification_TrainTest_Splits.ipynb) |
| notebook-siglip2-finetune-type2  | Only Train Split  | [Download](https://huggingface.co/prithivMLmods/FineTuning-SigLIP2-Notebook/blob/main/Finetune-SigLIP2-Image-Classification/2.SigLIP2_Finetune_ImageClassification_OnlyTrain_Splits.ipynb) |

The notebook outlines two data handling scenarios. In the first, datasets include predefined train and test splits, enabling conventional supervised learning and generalization evaluation. In the second scenario, only a training split is available; in such cases, the training set is either partially reserved for validation or reused entirely for evaluation. This flexibility supports experimentation in constrained or domain-specific settings, where standard test annotations may not exist.


```
last updated : jul 2025
```

| **Type 1: Train/Test Splits** | **Type 2: Only Train Split** |
|------------------------------|------------------------------|
| ![Type 1](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/l0vfc0wtIp5mHgP-KGtff.png) | ![Type 2](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/xFXZYGbbL1PgoyyobVLym.png) |

---

| Platform | Link |
|----------|------|
| Huggingface Blog | [![Model](https://img.shields.io/badge/🤗-Model-yellow)](https://huggingface.co/blog/prithivMLmods/siglip2-finetune-image-classification) |
| GitHub Repository | [![GitHub](https://img.shields.io/badge/GitHub-Repository-blue?logo=github)](https://github.com/PRITHIVSAKTHIUR/FineTuning-SigLIP-2) |