AIFSH / OmniGen-ComfyUI

MIT License
87 stars 8 forks source link

ImportError: cannot import name 'OffloadedCache' from 'transformers.cache_utils' #18

Open xueqing0622 opened 4 hours ago

xueqing0622 commented 4 hours ago

Traceback (most recent call last): File "F:\ComfyUI\ComfyUI\nodes.py", line 2012, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "F:\ComfyUI\ComfyUI\custom_nodes\OmniGen-ComfyUI__init__.py", line 17, in from OmniGen import OmniGenPipeline File "F:\ComfyUI\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen__init__.py", line 3, in from .scheduler import OmniGenScheduler File "F:\ComfyUI\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\scheduler.py", line 6, in from transformers.cache_utils import Cache, DynamicCache, OffloadedCache ImportError: cannot import name 'OffloadedCache' from 'transformers.cache_utils' (F:\ComfyUI\python_embeded\Lib\site-packages\transformers\cache_utils.py)

Cannot import F:\ComfyUI\ComfyUI\custom_nodes\OmniGen-ComfyUI module for custom nodes: cannot import name 'OffloadedCache' from 'transformers.cache_utils' (F:\ComfyUI\python_embeded\Lib\site-packages\transformers\cache_utils.py)

Dan0627 commented 3 hours ago

一样的问题,这个要怎么解决呀