Closed alexcc4 closed 5 months ago
You are missing files in that folder for some reason, you need all files from here: https://huggingface.co/microsoft/Florence-2-base/tree/main
This means I may need to download these files manually. I ran it directly according to the example process
pytorch_model.bin: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 464M/464M [05:26<00:00, 1.42MB/s]
!!! Exception during processing!!! An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
Traceback (most recent call last):█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 464M/464M [05:26<00:00, 3.91MB/s]
File "/Users/liangbinsi/.pyenv/versions/3.10.0/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1754, in _get_metadata_or_catch_error
raise FileMetadataError("Distant resource does not have a Content-Length.")
huggingface_hub.utils._errors.FileMetadataError: Distant resource does not have a Content-Length.
I found a problem when running the download for the first time
Maybe try updating your huggingface-hub manually.
From the root comfyui
folder (where you can see the comfyui
and python_embedded
subfolders), click on the file path at the top and type cmd
to open a command window in the folder(you might be able to find it in the right click menu as well).
Run the command python_embeded\python.exe -s -m pip install huggingface-hub
Maybe try updating your huggingface-hub manually.
I understand what you mean, maybe there is a problem with the huggingface dependency. I manually updated this dependency, and comfy UI is running on Mac. Still did not solve the problem.
Maybe there is a problem with my download on my device. My current solution: In directoty(ComfyUI/models/LLM)
git clone https://huggingface.co/microsoft/Florence-2-base
In addition, since it seems that the node configuration style of Florence2Run has been updated recently, do you mind updating the example workflow? Thank you for your contribution.
device: Mac arm64