Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where I can get 'weights/omniparser/icon_caption_blip2/best.pt' #7

Open
binchen1998 opened this issue Oct 25, 2024 · 5 comments
Open

Comments

@binchen1998
Copy link

binchen1998 commented Oct 25, 2024

Hi,

When I ran the example, it said:

FileNotFoundError: [Errno 2] No such file or directory: 'weights/omniparser/icon_caption_blip2/best.pt'
How to get these files?

Thanks a lot.

@runshengdu
Copy link

You need to create the file path manually, and go to huggingface to download the best.pt

@rwtnb
Copy link

rwtnb commented Oct 25, 2024

Clone the HF repo and change the yolo model path in gradio_demo.py

yolo_model = get_yolo_model(model_path='<path>/best.pt')

@binchen1998
Copy link
Author

Clone the HF repo and change the yolo model path in gradio_demo.py

yolo_model = get_yolo_model(model_path='<path>/best.pt')

Thanks for your reply!

But I noticed that the best.pt in HF repo is under icon_detect/ directory, but the code refers to icon_caption_blip2/ directory, is the best.pt in icon_detect/ usable?

@yadong-lu
Copy link
Collaborator

Hi @binchen1998 , we removed the .pt file with model safetensor file in the HF repo. Please try the updated readme, and see if you have any issue.

@abrichr
Copy link

abrichr commented Oct 29, 2024

See #52 for a download.py script that automates downloading the weights (used in this Dockerfile in the same PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants