Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

cxfajar197
/
urdu-ocr

Image-to-Text
Transformers
Safetensors
Urdu
vision-encoder-decoder
image-text-to-text
Model card Files Files and versions
xet
Community
2

Instructions to use cxfajar197/urdu-ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use cxfajar197/urdu-ocr 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="cxfajar197/urdu-ocr")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("cxfajar197/urdu-ocr")
    model = AutoModelForMultimodalLM.from_pretrained("cxfajar197/urdu-ocr", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • LICENSE
    625 Bytes
    Create LICENSE almost 2 years ago
  • README.md
    2.93 kB
    Update README.md almost 2 years ago
  • config.json
    78.1 kB
    Upload model about 2 years ago
  • generation_config.json
    234 Bytes
    Upload model about 2 years ago
  • model.safetensors
    1.17 GB
    xet
    Upload model about 2 years ago
  • preprocessor_config.json
    461 Bytes
    Upload preprocessor_config.json almost 2 years ago
  • special_tokens_map.json
    125 Bytes
    Upload 2 files almost 2 years ago
  • tokenizer_config.json
    1.28 kB
    Upload tokenizer_config.json almost 2 years ago
  • vocab.txt
    996 kB
    Upload 2 files almost 2 years ago