OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

cannot import name 'get_dino_model' from 'utils'

Open arthurwolf opened this issue 3 months ago • 2 comments

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!

arthurwolf avatar Nov 20 '24 02:11 arthurwolf