Instructions to use kpalczewski-displate/category_cleaning_imagefolder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kpalczewski-displate/category_cleaning_imagefolder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="kpalczewski-displate/category_cleaning_imagefolder") 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("kpalczewski-displate/category_cleaning_imagefolder") model = AutoModelForZeroShotImageClassification.from_pretrained("kpalczewski-displate/category_cleaning_imagefolder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from kpalczewski-displate/category_cleaning_imagefolder: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/kpalczewski-displate/category_cleaning_imagefolder/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://kpalczewski-displate/category_cleaning_imagefolder/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/kpalczewski-displate/category_cleaning_imagefolder/resolve/main/tokenizer_config.json
760 Bytes
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "49406": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49407": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|startoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": true, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "model_max_length": 77, | |
| "pad_token": "<|endoftext|>", | |
| "processor_class": "VisionTextDualEncoderProcessor", | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |