spacepxl / ComfyUI-Florence-2

Florence-2 image captioning and tasks
https://huggingface.co/microsoft/Florence-2-large
MIT License
37 stars 3 forks source link

running time error: Error occurred when executing LoadFlorence2Model: source code string cannot contain null bytes #6

Open gogo7707 opened 1 week ago

gogo7707 commented 1 week ago

Error occurred when executing LoadFlorence2Model: source code string cannot contain null bytes ............................... File "F:\ComfyUI\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 209, in get_class_in_module module_spec.loader.exec_module(module) File "", line 936, in exec_module File "", line 1074, in get_code File "", line 1004, in source_to_code File "", line 241, in _call_with_frames_removed the .cache fold can be find 2 files, C:\Users\Administrator.cache\huggingface\modules\transformers_modules\microsoft\Florence-2-base\a2f0be72f9e50b3183c8c2c28ff481bd837320f5
init.py 0KB configuration_florence2.py 15KB How can I solve the problem?

spacepxl commented 1 week ago

Try deleting the cached model to force it to re-download?