Instructions to use zabir735/clip-zabir-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zabir735/clip-zabir-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="zabir735/clip-zabir-2") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("zabir735/clip-zabir-2") model = AutoModelForZeroShotImageClassification.from_pretrained("zabir735/clip-zabir-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 500
Browse files- config.json +23 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "openai/clip-vit-base-patch16",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CLIPModel"
|
| 5 |
+
],
|
| 6 |
+
"initializer_factor": 1.0,
|
| 7 |
+
"logit_scale_init_value": 2.6592,
|
| 8 |
+
"model_type": "clip",
|
| 9 |
+
"projection_dim": 512,
|
| 10 |
+
"text_config": {
|
| 11 |
+
"bos_token_id": 0,
|
| 12 |
+
"dropout": 0.0,
|
| 13 |
+
"eos_token_id": 2,
|
| 14 |
+
"model_type": "clip_text_model"
|
| 15 |
+
},
|
| 16 |
+
"torch_dtype": "float32",
|
| 17 |
+
"transformers_version": "4.38.0.dev0",
|
| 18 |
+
"vision_config": {
|
| 19 |
+
"dropout": 0.0,
|
| 20 |
+
"model_type": "clip_vision_model",
|
| 21 |
+
"patch_size": 16
|
| 22 |
+
}
|
| 23 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:399b70ab802898e4f7e86162d4e57c69d0aed4fc74dc32a926e74f47ac469fdf
|
| 3 |
+
size 598530372
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b011cf1f7faea25ed87740dca57be2f7a7273394be93ef0c99f9c9b672b5dca
|
| 3 |
+
size 4728
|