comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
58.74k stars 6.23k forks source link

It shut down immediately after the last update #2998

Open cerarslan opened 8 months ago

cerarslan commented 8 months ago

After the last update, it shut down immediately terminal window, and when I run with cpu.bat, I get the following error;

Traceback (most recent call last): File "C:\ComfyUI_windows_portable\ComfyUI\main.py", line 76, in import execution File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 11, in import nodes File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 20, in import comfy.diffusers_load File "C:\ComfyUI_windows_portable\ComfyUI\comfy\diffusers_load.py", line 3, in import comfy.sd File "C:\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 7, in from .ldm.cascade.stage_c_coder import StageC_coder File "C:\ComfyUI_windows_portable\ComfyUI\comfy\ldm\cascade\stage_c_coder.py", line 19, in import torchvision File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision__init__.py", line 6, in from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision\models__init__.py", line 2, in from .convnext import * File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision\models\convnext.py", line 8, in from ..ops.misc import Conv2dNormActivation, Permute File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision\ops__init__.py", line 1, in from ._register_onnx_ops import _register_custom_op File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision\ops_register_onnx_ops.py", line 5, in from torch.onnx import symbolic_opset11 as opset11 File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\onnx__init__.py", line 46, in from ._internal.exporter import ( # usort:skip. needs to be last to avoid circular import File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\onnx_internal\exporter.py", line 44, in from torch.onnx._internal.fx import ( File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\onnx_internal\fx__init__.py", line 1, in from .patcher import ONNXTorchPatcher File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\onnx_internal\fx\patcher.py", line 11, in import transformers # type: ignore[import] ^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers__init__.py", line 26, in from . import dependency_versions_check File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in from .utils.versions import require_version, require_version_core File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils__init__.py", line 18, in from huggingface_hub import get_full_repo_name # for backward compatibility ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1229, in _handle_fromlist File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub__init.py", line 370, in getattr__ submod = importlib.import_module(submod_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "importlib__init__.py", line 126, in import_module File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\hf_api.py", line 62, in from ._inference_endpoints import InferenceEndpoint, InferenceEndpointType File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub_inference_endpoints.py", line 7, in from .inference._client import InferenceClient File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\inference_client.py", line 56, in from huggingface_hub.inference._common import ( File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\inference_common.py", line 51, in from ._text_generation import TextGenerationStreamResponse, _parse_text_generation_error File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\inference_text_generation.py", line 59, in @dataclass ^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic\dataclasses.py", line 250, in dataclass return create_dataclass(_cls) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic\dataclasses.py", line 241, in create_dataclass pydantic_complete = _pydantic_dataclasses.complete_dataclass( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_dataclasses.py", line 154, in complete_dataclass schema = gen_schema.generate_schema(cls, from_dunder_get_core_schema=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 499, in generate_schema schema = self._generate_schema(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 737, in _generate_schema schema = self._post_process_generated_schema(self._generate_schema_inner(obj)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 764, in _generate_schema_inner return self.match_type(obj) ^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 838, in match_type return self._dataclass_schema(obj, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 1487, in _dataclass_schema args = sorted( ^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 1488, in (self._generate_dc_field_schema(k, v, decorators) for k, v in fields.items()), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pydantic_internal_generate_schema.py", line 941, in _generate_dc_field_schema return core_schema.dataclass_field( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: dataclass_field() got an unexpected keyword argument 'init'

C:\ComfyUI_windows_portable>pause Press any key to continue . . .

ltdrdata commented 8 months ago

It seems that the versions of the pip package transformers are not compatible. How did you update ComfyUI?

cerarslan commented 8 months ago

It seems that the versions of the pip package transformers are not compatible. How did you update ComfyUI?

Hello sir, and thanks for replying. I updated with manager. I also tried to copy the local lib folder to standalone but it still don't work.

ltdrdata commented 8 months ago

Try this.

C:\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -U transformers
cerarslan commented 8 months ago

Try this.

C:\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -U transformers

It didn't work sir, but I solved my problem with a clean install. Although I'm not sure, I think the problem was caused by ComfyUI-Inference-Core-Nodes. Btw I learn a lot from you. Thank you for all your hard work ^^

Gustav85 commented 8 months ago

i installed inference core node too and got this same error