You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
xueqing0622
changed the title
mportError: cannot import name 'OffloadedCache' from 'transformers.cache_utils'
ImportError: cannot import name 'OffloadedCache' from 'transformers.cache_utils'
Nov 5, 2024
Upgrade your comfyui transformers library to the latest version. Run .\python_embeded\python.exe -m pip install --upgrade transformers in the directory containing the python_embeded folder if your running the portable version or just pip install --upgrade transformers if you installed comfy with your own python package.
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)
The text was updated successfully, but these errors were encountered: