Instructions to use pickapic-anonymous/PickScore_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pickapic-anonymous/PickScore_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="pickapic-anonymous/PickScore_v1") 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("pickapic-anonymous/PickScore_v1") model = AutoModelForZeroShotImageClassification.from_pretrained("pickapic-anonymous/PickScore_v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4ab4f99
1
Parent(s): a4f4753
Upload processor
Browse filesFiles changed (6)
- merges.txtAdded
- preprocessor_config.jsonAdded+29
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+36
- vocab.jsonAdded
1234567891011121314151617181920212223242526272829{ "crop_size": { "height": 224, "width": 224 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "feature_extractor_type": "CLIPFeatureExtractor", "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "processor_class": "CLIPProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536{ "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "model_max_length": 77, "pad_token": "<|endoftext|>", "processor_class": "CLIPProcessor", "special_tokens_map_file": "/fsx/yuval/.cache/huggingface/hub/models--yuvalkirstain--PickScore_v1/snapshots/9c3010951d076db6a0dba65641afe355d1d1ea49/special_tokens_map.json", "tokenizer_class": "CLIPTokenizer", "trust_remote_code": false, "unk_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}merges.txtAdded
preprocessor_config.jsonAdded+29
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer_config.jsonAdded+36
vocab.jsonAdded