tanganke/sun397
Viewer • Updated • 39.7k • 20.7k • 3
How to use tanganke/clip-vit-large-patch14_sun397 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="tanganke/clip-vit-large-patch14_sun397") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("tanganke/clip-vit-large-patch14_sun397")
model = AutoModel.from_pretrained("tanganke/clip-vit-large-patch14_sun397")Adam Optimizer with a constant learning rate 1e-5 for 4000 steps training (batch_size=32). Only the vision encoder is fine-tuned.
Base model
openai/clip-vit-large-patch14