microsoft / microsoft/OmniParser

cannot import name 'get_dino_model' from 'utils'

Open
#90 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
25.4k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Hello.

I tried running omniparser.py and got this error:

❯ python omniparser.py
Traceback (most recent call last):
  File "/home/arthur/dev/ai/OmniParser/omniparser.py", line 1, in <module>
    from utils import get_som_labeled_img, check_ocr_box, get_caption_model_processor,  get_dino_model, get_yolo_model
ImportError: cannot import name 'get_dino_model' from 'utils' (/home/arthur/dev/ai/OmniParser/utils.py). Did you mean: 'get_yolo_model'?

What am I doing wrong?

( Note: The Gradio demo works fine )

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the import list in omniparser.py and the definitions in utils.py, focusing on the missing get_dino_model name and the existing get_yolo_model entry point. Run python omniparser.py and compare its behavior with the working Gradio demo; done means the script starts without this ImportError while the demo remains functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, computer-vision
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.