Files
DAPT/lpclip
2025-10-07 22:42:55 +08:00
..
2025-10-07 22:42:55 +08:00
2025-10-07 22:42:55 +08:00
2025-10-07 22:42:55 +08:00
2025-10-07 22:42:55 +08:00
2025-10-07 22:42:55 +08:00

Linear Probe CLIP

To run linear probe baselines, make sure that your current working directory is lpclip/.

Step 1: Extract Features using the CLIP Image Encoder

sh feat_extractor.sh

Step 2: Train few-shot linear probe

sh linear_probe.sh

We follow the instructions stated in the Appendix A3 (pp.38) of the original CLIP paper, with a careful hyperparameter sweep.

Note: please pull the latest Dassl (version >= 606a2c6).