Instructions to use arkhabbazan/ocr-captcha-router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arkhabbazan/ocr-captcha-router with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="arkhabbazan/ocr-captcha-router")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("arkhabbazan/ocr-captcha-router") model = AutoModelForImageClassification.from_pretrained("arkhabbazan/ocr-captcha-router", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "MobileNetV2ForImageClassification" | |
| ], | |
| "classifier_dropout_prob": 0.2, | |
| "depth_divisible_by": 8, | |
| "depth_multiplier": 1.0, | |
| "dtype": "float32", | |
| "expand_ratio": 6, | |
| "finegrained_output": true, | |
| "first_layer_is_expansion": true, | |
| "hidden_act": "relu6", | |
| "id2label": { | |
| "0": "digits", | |
| "1": "math" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "digits": 0, | |
| "math": 1 | |
| }, | |
| "layer_norm_eps": 0.001, | |
| "min_depth": 8, | |
| "model_type": "mobilenet_v2", | |
| "num_channels": 3, | |
| "output_stride": 32, | |
| "semantic_loss_ignore_index": 255, | |
| "tf_padding": true, | |
| "transformers_version": "5.14.1", | |
| "use_cache": false | |
| } | |