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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ahczhg
/
DeepSeek-OCR-Colab

Image-to-Text
Transformers
ocr
document-processing
computer-vision
deepseek
colab
jupyter
optical-character-recognition
text-detection
document-to-markdown
notebook
Model card Files Files and versions
xet
Community

Instructions to use ahczhg/DeepSeek-OCR-Colab with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ahczhg/DeepSeek-OCR-Colab 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="ahczhg/DeepSeek-OCR-Colab")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ahczhg/DeepSeek-OCR-Colab", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
DeepSeek-OCR-Colab
76.9 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
ahczhg's picture
ahczhg
Upload README.md with huggingface_hub
721245a verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • DeepSeek_OCR_Colab.ipynb
    67.2 kB
    Upload DeepSeek_OCR_Colab.ipynb with huggingface_hub 7 months ago
  • LICENSE
    1.42 kB
    Upload LICENSE with huggingface_hub 7 months ago
  • README.md
    5.95 kB
    Upload README.md with huggingface_hub 7 months ago
  • requirements.txt
    841 Bytes
    Upload requirements.txt with huggingface_hub 7 months ago