OmniParser
OmniParser copied to clipboard
Locally Running demo.ipynb fails
When I cloned the repository and downloaded the florence2 and icon_detect models from hugging face and uploaded the folders as defined in the Readme.md , still I was not able to run the whole file as when I was running :
caption_model_processor = get_caption_model_processor(model_name="florence2", model_name_or_path="./weights/icon_caption_florence", device=device)
I was getting following error: Could not locate the configuration_florence2.py inside microsoft/Florence-2-base-ft.
LocalEntryNotFoundError Traceback (most recent call last) File c:\Users\hp-15\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\utils\hub.py:403, in cached_file(path_or_repo_id, filename, cache_dir
.... .... ...
OSError: We couldn't connect to 'https://huggingface.co/' to load this file, couldn't find it in the cached files and it looks like microsoft/Florence-2-base-ft is not the path to a directory containing a file named configuration_florence2.py. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.