AIFSH / ComfyUI-Hallo

MIT License
217 stars 8 forks source link

YAML error #2

Closed Mikerhinos closed 1 week ago

Mikerhinos commented 2 weeks ago

I'm getting this error :

Traceback (most recent call last):
  File "D:\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-Hallo\Hallo\scripts\inference.py", line 372, in <module>
    inference_process(command_line_args)
  File "D:\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-Hallo\Hallo\scripts\inference.py", line 128, in inference_process
    config = OmegaConf.load(args.config)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\omegaconf\omegaconf.py", line 190, in load
    obj = yaml.load(f, Loader=get_yaml_loader())
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\__init__.py", line 81, in load
    return loader.get_single_data()
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 51, in get_single_data
    return self.construct_document(node)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 60, in construct_document
    for dummy in generator:
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 413, in construct_yaml_map
    value = self.construct_mapping(node)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\omegaconf\_utils.py", line 151, in construct_mapping
    return super().construct_mapping(node, deep=deep)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 218, in construct_mapping
    return super().construct_mapping(node, deep=deep)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 143, in construct_mapping
    value = self.construct_object(value_node, deep=deep)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 100, in construct_object
    data = constructor(self, node)
  File "D:\pinokio\api\comfyui.git\app\env\lib\site-packages\yaml\constructor.py", line 427, in construct_undefined
    raise ConstructorError(None, None,
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:torch._utils._rebuild_tensor_v2'
  in "D:\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-Hallo\tmp.yaml", line 37, column 15

Running on Pinokio's ComfyUI, not sure what's happening, maybe a version conflict ?

mpoplawskiatpp commented 2 weeks ago

Same on my side. Windows 10 + fresh comfy install on python 3.10

File "D:\PROJEKTY\ComfyUI\venv_p310\lib\site-packages\yaml\constructor.py", line 427, in construct_undefined raise ConstructorError(None, None, yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:torch._utils._rebuild_tensor_v2' in "D:\PROJEKTY\ComfyUI\custom_nodes\ComfyUI-Hallo\tmp.yaml", line 37, column 15 Prompt executed in 109.05 seconds

PolarRobin commented 2 weeks ago

I have the same message on Linux

mpoplawskiatpp commented 1 week ago

From the repo creator: "LoadImagePath node not LoadImage" - test this out. It fixed this bug on my setup!

PolarRobin commented 1 week ago

I have the same message on Linux

From the repo creator: "LoadImagePath node not LoadImage" - test this out. It fixed this bug on my setup!

Solved it for me too, thanks!

mpoplawskiatpp commented 1 week ago

The funniest part is around 5 people made the same mistake :) Glad it's solved and working! KUDOS to the @AIFSH for this GREAT NODE!

Mikerhinos commented 1 week ago

image Unfortunately I still have the error.

I probably have a conflicting node, I just updated everything :(