miaoshouai / ComfyUI-Miaoshouai-Tagger

MIT License
242 stars 14 forks source link

microsoft/Florence-2-large is not the path to a directory containing a file named configuration_florence2.py #15

Closed kuzhushidai closed 1 month ago

kuzhushidai commented 1 month ago

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-large 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'. 大佬我想知道为啥我这里全部资源理应全部下载完毕了 但是会说文件里没有configuration_florence2.py 292e9ef1-0630-4ee0-b203-c528e609ee24

kuzhushidai commented 1 month ago

![Uploading 14649ce1-bfca-453f-a67f-2d6337eefda5.png…]()

guoyouworld commented 1 month ago

same issue

zszen commented 1 month ago

I add microsoft/Florence-2-large folder into it. And it dont work yet.

richuyouyaojie commented 1 month ago

the same issue here, kinldy solve it ASAP

dx9052 commented 1 month ago

same issue

uza0308 commented 1 month ago

same issue

2364814106 commented 1 month ago

same issue, is solved?

miaoshouai commented 1 month ago

ok. try to update to v1.3. model repo has added the configuration file to handle local model useage. you can follow the instructions on the README.md to either auto download the model when re-run the workflow or download the model manually from baidu drive if huggingface is not reachable to you.

miaoshouai commented 1 month ago

image basicly this is the new folder you want to download and add with the new version of code.

Rainmanqxy commented 1 month ago

image Tried everything (download from Baidu, HuggingFace...), still can't run the node...everytime, the notice will pop up like this: image Really like this node after seeing the introductions, but it's taken hours to install it but failed, a little frustrated... Please kindly help on this, thanks!

Rainmanqxy commented 1 month ago

Is there any limitation on the hardware? I'm using N 4060Ti 16g...

miaoshouai commented 1 month ago

4060ti is good for the model. try to update your node again in comfyui manager. it was updated recently

Linxiren commented 1 month ago

我也是遇到了一样的问题,明明已经更新了节点,但是就是不起作用

807502278 commented 1 month ago

问题可能出在transformers的这个模块上AutoModelForCausalLM.from_pretrained(), 即使已指定本地文件,它仍然会自动下载3个py文件到缓存文件夹 image 而且使用cache_dir参数指定路径也会下载,在服务器上使用时很头疼 代码太多了我没时间去查看,也许可以尝试更换transformers版本来解决此问题

kaiday2023 commented 1 month ago

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 processing_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'.

miaoshouai commented 1 month ago

refer to this issue for the fix solusion: https://github.com/miaoshouai/ComfyUI-Miaoshouai-Tagger/issues/23#issuecomment-2401340644