Instructions to use Digiquanta/Facesheet_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Digiquanta/Facesheet_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Digiquanta/Facesheet_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("Digiquanta/Facesheet_classification") model = AutoModelForSequenceClassification.from_pretrained("Digiquanta/Facesheet_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
added config files
Browse filesFiles changed (7)
- config.json+19-5
- merges.txtAdded
- preprocessor_config.jsonAdded+26
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+79
- vocab.jsonAdded
13 unmodified lines14151617181718192021222324252627282930242531323334353637383940414212 unmodified lines555657445859606113 unmodified lines "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "facesheet", "1": "other" "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8" }, "initializer_range": 0.02, "input_size": 224, "intermediate_size": 3072, "label2id": { "facesheet": 0, "other": 1 "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8 }, "layer_norm_eps": 1e-05, "max_2d_position_embeddings": 1024,12 unmodified lines "shape_size": 128, "text_embed": true, "torch_dtype": "float32", "transformers_version": "4.47.1", "transformers_version": "4.47.0", "type_vocab_size": 1, "visual_embed": true, "vocab_size": 502651234567891011121314151617181920212223242526{ "apply_ocr": false, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "LayoutLMv3FeatureExtractor", "image_std": [ 0.5, 0.5, 0.5 ], "ocr_lang": null, "processor_class": "LayoutLMv3Processor", "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }, "tesseract_config": ""}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ "add_prefix_space": true, "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "50264": { "content": "<mask>", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "cls_token_box": [ 0, 0, 0, 0 ], "eos_token": "</s>", "errors": "replace", "extra_special_tokens": {}, "mask_token": "<mask>", "model_max_length": 512, "only_label_first_subword": true, "pad_token": "<pad>", "pad_token_box": [ 0, 0, 0, 0 ], "pad_token_label": -100, "processor_class": "LayoutLMv3Processor", "sep_token": "</s>", "sep_token_box": [ 0, 0, 0, 0 ], "tokenizer_class": "LayoutLMv3Tokenizer", "trim_offsets": true, "unk_token": "<unk>"}config.json+19-5
merges.txtAdded
preprocessor_config.jsonAdded+26
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded
tokenizer_config.jsonAdded+79
vocab.jsonAdded