microsoft / microsoft/OmniParser
cannot import name 'get_dino_model' from 'utils'
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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