Instructions to use vinluvie/clip-general with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vinluvie/clip-general with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="vinluvie/clip-general") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("vinluvie/clip-general") model = AutoModelForZeroShotImageClassification.from_pretrained("vinluvie/clip-general", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (4)
- README.mdAdded+53
- config.jsonAdded+30
- model.safetensorsAdded+3
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---base_model: openai/clip-vit-large-patch14tags:- generated_from_trainerdatasets:- imagefoldermodel-index:- name: clip-vit-large-patch14-finetuned-sofas results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# clip-vit-large-patch14-finetuned-sofas
This model is a fine-tuned version of [openai/clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14) on the imagefolder dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 32- eval_batch_size: 32- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 10.0
### Training results
### Framework versions
- Transformers 4.38.0.dev0- Pytorch 2.2.0+cu121- Datasets 2.17.0- Tokenizers 0.15.2123456789101112131415161718192021222324252627282930{ "_name_or_path": "openai/clip-vit-large-patch14", "architectures": [ "CLIPModel" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 768, "text_config": { "dropout": 0.0, "hidden_size": 768, "intermediate_size": 3072, "model_type": "clip_text_model", "num_attention_heads": 12, "projection_dim": 768 }, "torch_dtype": "float32", "transformers_version": "4.38.0.dev0", "vision_config": { "dropout": 0.0, "hidden_size": 1024, "intermediate_size": 4096, "model_type": "clip_vision_model", "num_attention_heads": 16, "num_hidden_layers": 24, "patch_size": 14, "projection_dim": 768 }}123version https://git-lfs.github.com/spec/v1oid sha256:1c83e33951eb46cebdaeaf9a2c2d744b98ba8a3aa98bf5b69e2156adcb84e500size 1710537716123version https://git-lfs.github.com/spec/v1oid sha256:5ba8301cbdc8ed0ea6d138cc19af8f35d40a791dec4a66cd294849cac6d5bc9asize 4792README.mdAdded+53
config.jsonAdded+30
model.safetensorsAdded+3
training_args.binAdded+3